GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess redirect specific ip to a different site? (https://gfy.com/showthread.php?t=965743)

Juicy D. Links 04-28-2010 11:42 AM

htaccess redirect specific ip to a different site?
 
order allow,deny
deny from 24.111.111.111

allow from all


that blocks em now i want to send em to www.google.com

Whats best way?


thx

ProG 04-28-2010 12:22 PM

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]



All times are GMT -7. The time now is 06:05 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123