Forum Moderators: martinibuster

Message Too Old, No Replies

How can I stop my websites from displaying in EU countries

         

housewife

1:25 pm on May 19, 2018 (gmt 0)

10+ Year Member



I run simple html wesbsites and I want them to stop dispalying at all in EU countries. How can I do that?

lucy24

3:54 pm on May 19, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How much work are you prepared to do? About all you can do is block access across-the-board to all IPs in RIPE ranges; constraining it to EU member countries requires a whole lot more work. At the risk of stating the obvious, Europe is not China.

But honestly, why bother? Just how many EU rules are your “simple html” sites violating?

:: idly wondering how this is even an Adsense question, because doesn't G### tell you when you've offended them? ::

ember

4:06 pm on May 19, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you are worried about GDPR, turn off personalized ads for EU members in your Adsense console and put up a simple "We use cookies - by using this site you agree to them" banner from one of the cookiechoices.org companies, and you will probably be fine. At least for now, while we wait to see how GDPR plays out.

housewife

4:15 pm on May 19, 2018 (gmt 0)

10+ Year Member



@ember Can you please tell me that how can I just put that banner in a way that it is visible only to EU users?

ember

4:38 pm on May 19, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Cookie Consent (Silktide) lets you target by country but it takes programming skills to do that. Cookiebot has a box to check to show the banner in EU countries only, but it costs. Not too much, but it depends on your site size. Quantcast [quantcast.com ] looks good, although I haven't tested it. It is free and targeted to EU folks.

ken_b

5:43 pm on May 19, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm still trying to decide what to do about this too. The net was a lot simpler 18 years ago.

fretfull

5:28 pm on May 23, 2018 (gmt 0)

5+ Year Member Top Contributors Of The Month



IMO the easiest way to do this is sign up for a free Cloudflare account. You can have Cloudflare send you a country code as part of the request and then you can decide to display ads or not based on the country.

Dhillon

5:54 pm on May 23, 2018 (gmt 0)

10+ Year Member



The code to to show the banner to EU visitors only.


<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"theme": "edgeless",
"location": "true",
"content": {
"message": "XXX use cookies to ensure you get the best experience",
"href": "https://url"
}
})});
</script>