Hello all,
In want to block access to my site (say if
- the referrer is not in an allowed list
or
- the user-agent is not in an allowed-forbidden list,
For this, I made the following htaccess file :
[tt]
SetEnvIfNoCase Referer ^$ allowed_referer
SetEnvIfNoCase Referer ^ allowed_referer
SetEnvIfNoCase Referer ^ allowed_referer
#block spiders
BrowserMatch ^Mozilla allowed_agent
BrowserMatch ^Opera allowed_agent
#and for "Mozilla/4.0 (compatible; MSIE 5.0; Windows 95) TrueRobot; 1.4" (voila), squash 'em
BrowserMatch TrueRobot forbidden_agent
BrowserMatch Echo2 forbidden_agent
Order Allow,Deny
Allow from env=allowed_referer
Allow from env=allowed_agent
Deny from env=forbidden_agent
[/tt]
Though, when I come to my.site.com through a link from google.com, access is allowed !! How come ?
Thanks *a lot* for any hint.
Cheers,
In want to block access to my site (say if
- the referrer is not in an allowed list
or
- the user-agent is not in an allowed-forbidden list,
For this, I made the following htaccess file :
[tt]
SetEnvIfNoCase Referer ^$ allowed_referer
SetEnvIfNoCase Referer ^ allowed_referer
SetEnvIfNoCase Referer ^ allowed_referer
#block spiders
BrowserMatch ^Mozilla allowed_agent
BrowserMatch ^Opera allowed_agent
#and for "Mozilla/4.0 (compatible; MSIE 5.0; Windows 95) TrueRobot; 1.4" (voila), squash 'em
BrowserMatch TrueRobot forbidden_agent
BrowserMatch Echo2 forbidden_agent
Order Allow,Deny
Allow from env=allowed_referer
Allow from env=allowed_agent
Deny from env=forbidden_agent
[/tt]
Though, when I come to my.site.com through a link from google.com, access is allowed !! How come ?
Thanks *a lot* for any hint.
Cheers,