Community & Support

redirect anonymous to site root if no cookie

Hi,
I have a site with foul language and would like all anonymous users to be directed to mysite.com no matter what sub-url they try to enter (mysite.com/node/22 for example would go to mysite.com) -if- they haven't accepted a cookie yet. on mysite.com would be a page with terms of use and a link to "enter site" which would take them to mysite.com but without the terms of use visible. Splash module explicitly states it does not redirect, front_page module allows redirection but is based on role and not cookies, and legal module doesn't seem to be what I need either. I just need a simple way to redirect any page to root if a cookie is not set, and although some say a splash page is ugly, I'd rather use that than a "dummy login"

Comments

Splash module

I believe the Splash module can provide what you are looking for.

nobody click here