![]() |
How do I block *****?
Wondering how I can, if I can, block certain domains from accessing pages on my domain.
What I need is something that will grab people from other countries and send them off to a url specified in the code. (example - www.bandwidtheaters.ru) I've looked around but must be looking in wrong places. Thanks in advance! |
I've wondered the same thing. I'd like to know how to serve based on country also...
I've mastered .htaccess as per my requirements, hotlink protection, error documents and referrer redirection. However, with the redirection, I can only redirect, for example, if the referrer is NOT cheatingscumbags.com I'd like to know how to set up .htaccess redirect (for example) traffic if it IS coming from cheatingscumbags.com |
IIS 5.0 has a nice feature, where you can grant access to all Ip adresses or domains except for... <your list> etc.. Those on the list will just get a 403 error. Is that what you are looking for ?
|
you can do this with php pretty easily. Something like this:
<?php ereg("\.([a-z]+)$", $country, $regs); switch ($regs[1]) { case "uk": header("Location: http://....uk site"); break; case "es": header("Location: http://...spain site"); break; default: header("Location: http://...default site"); } ?> Tim |
No more like something I can put on the server that would control all pages on my domain and subdomains.
Is there an htaccess that would make this happen? |
hardcore... I don't know anything about php... where would I put that code on my server?
|
I am working on the same idea but with a few extras for good measure. Wish I had learn't php inline code instead of perl http://bbs.gofuckyourself.com/board/frown.gif
HCH - I have started reading the PHP book - its not so bad, just finding the time that's the problem. |
UNBAN ME, LENSMAN! :thumbsup
|
|
All times are GMT -7. The time now is 01:40 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123