Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

sending visitor to a different page from an IP

Joined
Jul 13, 2004
Posts
5,852
Reaction score
387
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.
 

Rule #1: Be Respectful

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

Premium Members

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom