View Single Post
Old 04-28-2010, 12:22 PM  
ProG
Confirmed User
 
Join Date: Apr 2009
Posts: 1,319
I think if you were to use the allow/deny method you would need to use ErrorDocument 403 to redirect. Otherwise you could use mod_rewrite:

Code:
RewriteEngine on
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^127.0.0.0$
RewriteRule .* http://www.google.com/ [R=301,L]
__________________
History will be kind to me for I intend to write it.
ProG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote