Nginx geoip redirect based on country codes but exclude googlebot

Hendrik Hardeman hendrik.hardeman at hotmail.com
Thu Nov 18 17:50:56 MSK 2010


Hello,

> Date: Thu, 18 Nov 2010 06:36:24 -0500
> To: nginx at nginx.org
> From: nginx-forum at nginx.us
> Subject: Re: Nginx geoip redirect based on country codes but exclude googlebot
> 
> Hello,
> 
> Just to confirm, your configuration works fine, i have applied it today,
> still wondering if it would be better to use refferrer or ip ? Any
> suggestions ? Thank you.
> 
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,151401,151657#msg-151657

The GoogleBot header can be faked.See e.g. http://www.zhacks.com/2010/05/06/view-restricted-website-by-cloacking-as-googlebot/
I'd go for the IP range.
Hendrik 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101118/16000251/attachment.html>


More information about the nginx mailing list