i try to block / disable only cookies set by an specific JS File. In my Case the file is.
I don't want to block the hole file, i only want to block cookies that are set by these file.
I test Cookie blocking by unset the header in .httacces, but it didn't work.
<IfModule mod_headers.c> RequestHeader unset Cookie Header unset Cookie Header unset Set-Cookie </IfModule>
I want the file to load normally, but without permission to create cookies.
If Cookies are not allowed in the Browser Software, Adsense is showing ads normaly, but don't load cookies. So why to ask user permission and after that load the adsense script? Wouldn't it be better to block all Cookies generaly or only for that special file. So you don't need a Cookie permission.
Cookie Consent Plugins like these block the hole Script and reenable it after Cookie Permission.
But that is a big Problem, because you lose Money. It makes no sence.
Example (Not a good solution, Because blocked on Pageview and only load after user permission)
<script **type="text/plain"** class="cc-onconsent-inline-advertising"> google_ad_client = "ca-pub-0000000000000000"; google_ad_slot = "0000000000"; google_ad_width = 728; google_ad_height = 90; </script> <script type="text/plain" class="cc-onconsent-inline-advertising" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>