IP redirect ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sextriangle
    Registered User
    • Jan 2009
    • 8

    #1

    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
  • chelis
    Confirmed User
    • Jan 2006
    • 620

    #2
    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.

    Comment

    • AIbenjamink
      Confirmed User
      • Jan 2009
      • 420

      #3
      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.
      Benjamin : [email protected] : 405-243-447 : www.AdultInterface.com

      Comment

      Working...