Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

sending visitor to a different page from an IP

Paullas

Staff member
Joined
Jul 13, 2004
Posts
5,817
Reaction score
361
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
 
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]
 
Thanks guys just what i needed to stop a threatening company visiting my site.
 
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?

Could you give me a list of Nominet's IP ranges please.
 
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.
 
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.

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.
 

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

Latest Comments

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom