bachx Posted September 27, 2007 Share Posted September 27, 2007 I want to prevent access from external sites, for example a proxy site. I don't want to enable linking such as proxysite.com?url=www.mysite.com, but only a direct link: mysite.com. Any ideas? Link to comment https://forums.phpfreaks.com/topic/70824-prevent-access-from-external-sites/ Share on other sites More sharing options...
Psycho Posted September 27, 2007 Share Posted September 27, 2007 Try using using $_SERVER['SERVER_NAME'] Never tested it in that situation though. Of course if they are using page scraping, not too much you can do about it. Link to comment https://forums.phpfreaks.com/topic/70824-prevent-access-from-external-sites/#findComment-356084 Share on other sites More sharing options...
d22552000 Posted September 27, 2007 Share Posted September 27, 2007 you could make your script check $REMOTE_ADDR against a list of proxies that you get from a proxylist.com You can then manually add certain big proxies to it like proxyhost.com and hidemyass.com Link to comment https://forums.phpfreaks.com/topic/70824-prevent-access-from-external-sites/#findComment-356130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.