I have a simple Wordpress website and no need to set cookies. To comply with regulations and avoid EU cookie warnings at the same time, I would like to disable all cookies on my domain.
I read that this can be done by using the following code in .htaccess:
Header unset Cookie
Header unset Set-Cookie
I added it to /var/www/html/.htaccess but I still get cookies. How can I achieve a cookie-free website with Apache?
Follow-up question:
How can I restrict the above policy to one domain only, so I can still have cookies for the admin interface using the IP instead of the domain?