Accepting gifts "from friends only" is an option that unlocks at the Sapphire tier of the Loyalty Program.
Once the feature is activated, those players who are not in your "buddies list" won't be able to send you gifts.
Once the feature is activated, those players who are not in your "buddies list" won't be able to send you gifts.
If you don't want to get any gifts or presents at all, you can simply remove all the players from your friends.
You can enable or disable the option in your profile settings: