|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
|
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 |
|
|
|
|
|
#2 |
|
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. |
|
|
|