Title: Block cookie from functions.php
Last modified: May 10, 2018

---

# Block cookie from functions.php

 *  Resolved [valentino86](https://wordpress.org/support/users/valentino86/)
 * (@valentino86)
 * [8 years ago](https://wordpress.org/support/topic/block-cookie-from-functions-php/)
 * Hello,
    to be compliant with the EU Cookie Law I would like to block AddToAny
   to inject the cookie in the user’s browser before any consent is given. Is there
   a way to block the AddToAny cookie from the functions.php?
 * Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [shojibur](https://wordpress.org/support/users/shojibur/)
 * (@shojibur)
 * [8 years ago](https://wordpress.org/support/topic/block-cookie-from-functions-php/#post-10301621)
 * Woh ! seems like they are not interested to reply. I am looking for same solution.
 *  Anonymous User 14018805
 * (@anonymized-14018805)
 * [8 years ago](https://wordpress.org/support/topic/block-cookie-from-functions-php/#post-10304086)
 * I need a solution too!
 *  Plugin Author [micropat](https://wordpress.org/support/users/micropat/)
 * (@micropat)
 * [8 years ago](https://wordpress.org/support/topic/block-cookie-from-functions-php/#post-10304821)
 * The plugin doesn’t actually set an AddToAny cookie on publisher sites.
 * The core script’s usage is seldom sampled on AddToAny’s domain using Google Analytics,
   and as of this week the script’s G.A. is configured to _not_ use cookies or unique
   IDs.
 *  [nix255](https://wordpress.org/support/users/nix255/)
 * (@nix255)
 * [8 years ago](https://wordpress.org/support/topic/block-cookie-from-functions-php/#post-10326776)
 * on my website AddToAny is setting this cookie: __cfduid
    So it is setting a cookie,
   even on pages where the sharing buttons are not displayed. Therefore this cookie
   needs to be prevented from loading if a visitor rejects cookies. Is there a way
   to do this? What is this cookie for?
 *  Plugin Author [micropat](https://wordpress.org/support/users/micropat/)
 * (@micropat)
 * [8 years ago](https://wordpress.org/support/topic/block-cookie-from-functions-php/#post-10331555)
 * [@nix255](https://wordpress.org/support/users/nix255/) `__cfduid` is Cloudflare’s
   [security cookie](https://support.cloudflare.com/hc/en-us/articles/200170156-What-does-the-Cloudflare-cfduid-cookie-do-)
   and such cookies are appropriately exempt in the [EU legislation](http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Block cookie from functions.php’ is closed to new replies.

 * ![](https://ps.w.org/add-to-any/assets/icon.svg?rev=972738)
 * [AddToAny Share Buttons](https://wordpress.org/plugins/add-to-any/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-to-any/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-to-any/)
 * [Active Topics](https://wordpress.org/support/plugin/add-to-any/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-to-any/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-to-any/reviews/)

## Tags

 * [cookie](https://wordpress.org/support/topic-tag/cookie/)

 * 5 replies
 * 5 participants
 * Last reply from: [micropat](https://wordpress.org/support/users/micropat/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/block-cookie-from-functions-php/#post-10331555)
 * Status: resolved