• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

sending visitor to a different page from an IP

PaullasPaullas is verified member.

Acorn Moderator
Nominet Member
Nominet Registrar
Hosting Provider
Domain Marketplace
Parking Service
Joined
Jul 13, 2004
Posts
5,928
Reaction score
467
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.
 
Top Bottom