GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   IP redirect ? (https://gfy.com/showthread.php?t=891082)

sextriangle 03-02-2009 11:57 AM

IP redirect ?
 
Hey

Don't know if this is the right place to ask this, but I have an important question. How to redirect someone's IP to another site ? I know that I can ban someone with .htaccess -file, but would like to use one on the entering page in HTML. Is there a way to do it ?
:321GFY

chelis 03-02-2009 12:15 PM

Good question, you can do it with the .htaccess file for sure, unfortunately I'm not sure how. :(

You should know that he can use a proxy or a dynamic IP or even a site like hidemyass(dot)com to avoid detection.

AIbenjamink 03-12-2009 09:06 AM

Something along these lines should work:

RewriteCond %{REMOTE_ADDR} ^123\.123\.123\.123
RewriteRule ^index\.html$ specialpage.html [R=301,L]

In this example, anyone with the IP address 123.123.123.123 requesting your index.html page would be redirected to specialpage.html. Hope this helps, you will be able to find quite a few examples through google if you are looking for something more specific.


All times are GMT -7. The time now is 12:54 PM.

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