fantomTip:
How To Block Google’s Web Accelerator – Update #2
Note: This is an update to:
Please make sure you adjust your existing .htaccess code for optimum protection!
(bro) We’ve detected further Google Web Accelerator (GWA) IP ranges, namely:
64.233.172.0 – 64.233.172.255 and 64.233.173.0 – 64.233.173.255
To block the new ranges as well as the previously referenced one, you will need to modify the RewriteCond line in your .htaccess file:
previous
RewriteCond %{REMOTE_ADDR} ^72.14.192.
new
RewriteCond %{REMOTE_ADDR} ^(72.14.192.|72.14.194.|64.233.172.|64.233.173.)
RewriteCond %{HTTP_USER_AGENT} !^Mediapartners-Google
Using the pipe symbol “|” you can include additional ranges in the checking pattern (pipe is a logical OR).
And as you can see, multiple IP ranges are embedded in rounded brackets “( )”.
Please note that we have added a new condition to avoid blocking the Mediapartners spider
because this spider is also using the IP range 64.233.173.0 – 64.233.173.255
So please find our adjusted code samples below.
RewriteEngine onOptions +FollowSymlinksRewriteBase /RewriteCond %{REMOTE_ADDR} ^(72.14.192.|72.14.194.|64.233.172.|64.233.173.)RewriteCond %{HTTP_USER_AGENT} !^Mediapartners-GoogleRewriteRule ^.*$ - [F]
And:
RewriteEngine onOptions +FollowSymlinksRewriteBase /RewriteCond %{REMOTE_ADDR} ^(72.14.192.|72.14.194.|64.233.172.|64.233.173.)RewriteCond %{HTTP_USER_AGENT} !^Mediapartners-GoogleRewriteCond %{REQUEST_URI} !^/gwa-forbidden.html$RewriteRule ^.*$ /gwa-forbidden.html
[ ]
Trackback link: http://fantomaster.com/fantomNews/archives/2005/05/07/fantomtip-how-to-block-google%e2%80%99s-web-accelerator-update-2/trackback/
![[Home]](http://fantomaster.com/images/shim.gif)






















