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. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
03-02-2009, 11:57 AM | #1 |
Registered User
Join Date: Jan 2009
Location: Finland
Posts: 8
|
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 ?
__________________
The only public amateur website of a couple in Finland since 2005. http://www.sextriangle.net |
03-02-2009, 12:15 PM | #2 |
Confirmed User
Industry Role:
Join Date: Jan 2006
Location: Montevideo
Posts: 620
|
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. |
03-12-2009, 09:06 AM | #3 |
Confirmed User
Industry Role:
Join Date: Jan 2009
Posts: 420
|
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. |