Skip to main content
Topic: EUCA: EU Cookie Alert (Read 9460 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: EUCA: EU Cookie Alert

Reply #15

Quote from: radu81 – Feline, It looks like you invested a lot of work and time into this on PortaMX  ;)
True  ;) .. I love it, to get the best for our visitors ... Design, Comfort, Speed and mutch more .. for Desctop and Mobile
Many are stubborn in relation to the path, a few in relation to the target.
Visit our new Forum Project on https://www.portamx.com

Re: EUCA: EU Cookie Alert

Reply #16

Thanks @Feline. I will try to exclude spiders in the future, but I am afraid it is more to the code itself, not the spiders. My test result was even the code is not loaded, the buttons are still affected by this addon. I haven't properly checked on this but I hope to resolve it soon.

Re: EUCA: EU Cookie Alert

Reply #17

Well .. I don't use the javascript from GEOIP ..
I make a normal http request (with the curl php routines) so I can use a Timeout and can detect if we have received code or not.

The flow is as follow:
after userdata is loaded ..
1. check if a guest or spider
    if is a spider, check if we known it
    a) no .. add to the spiderlist -> done
    b) in spiderlist -> done

2. is a normal guest
    check if we known the IP (all guest IP's and the geoip data cached)
    a) in cache ... done
    b) get data from GeoIp

3. Check the data if he inside the EU
    YES: he have ECL cookie set? => Yes done, No = Show the ECL overlay
    NO: request geoip, if in EU cache the IP and Geoip code, show ECL overlay

On this flow, it's also very simple to make a Landing page .. means, the site is shown in the user country language.
(We have currently only english and german, but I hope we get more)

That is, what we have done and use on our Site.

Feline
Many are stubborn in relation to the path, a few in relation to the target.
Visit our new Forum Project on https://www.portamx.com