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? Quote 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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.