Domain Manage

sending visitor to a different page from an IP

Discussion in 'General Board' started by SecNam, Mar 22, 2016.

  1. SecNam

    SecNam Moderator Staff Member

    Joined:
    Jul 2004
    Posts:
    5,127
    Likes Received:
    37
    Hi

    Does anyone know if it is possible using htaccess that if a certain IP address lands on the site i can show them a different page for example welcome.php page.

    Thanks
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. Adam H

    Adam H Well-Known Member Exclusive Member

    Joined:
    May 2014
    Posts:
    1,047
    Likes Received:
    84
    Something like this should do it :

    Code:
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{REMOTE_ADDR} ^99\.888\.777\.66$
    RewriteRule ^askedforpage\.html /redirecttopage.html [R,NC,L]
     
  4. Skinner

    Skinner Well-Known Member

    Joined:
    Jul 2008
    Posts:
    4,325
    Likes Received:
    81
  5. SecNam

    SecNam Moderator Staff Member

    Joined:
    Jul 2004
    Posts:
    5,127
    Likes Received:
    37
    Thanks guys just what i needed to stop a threatening company visiting my site.
     
  6. invincible

    invincible Well-Known Member

    Joined:
    Feb 2005
    Posts:
    4,108
    Likes Received:
    81
    Don't you consider they'll be smart enough to ask someone else to take a look at it from an IP address range you're not currently aware of? Are you adding in all of Nominet's IP ranges at the same time?
     
  7. SecNam

    SecNam Moderator Staff Member

    Joined:
    Jul 2004
    Posts:
    5,127
    Likes Received:
    37
    Could you give me a list of Nominet's IP ranges please.
     
  8. RobM

    RobM Well-Known Member Exclusive Member

    Joined:
    Mar 2012
    Posts:
    1,089
    Likes Received:
    36
    I would have thought trying to prevent a company visiting your site (and it is incredibly easily got around by any online proxy free to use) would only compound any potential guilt or culpbility? I'm not saying you're in the wrong just it doesn't seem a very reliable prevention.
     
  9. SecNam

    SecNam Moderator Staff Member

    Joined:
    Jul 2004
    Posts:
    5,127
    Likes Received:
    37
    Hi Rob.

    I agree its very easy to get around but it is more of spammers than anything tbh.

    I am not trying to block Nominet or genuine companies but doing some testing with unwanted visitors to different pages.
     
  10. invincible

    invincible Well-Known Member

    Joined:
    Feb 2005
    Posts:
    4,108
    Likes Received:
    81
    RIPE Whois?
     

Share This Page