rfeio Posted October 28, 2007 Share Posted October 28, 2007 Hi! I'm developing a small script to put on a web site on a UNIX server. I know that there are some pieces of software that are able to download an entire website into your local disk and therefore, I would like to know how can I prevent this from happening to my website? I'm not interested in having other people snooping around my php script. Thanks! Link to comment https://forums.phpfreaks.com/topic/75120-php-site-security/ Share on other sites More sharing options...
GingerRobot Posted October 28, 2007 Share Posted October 28, 2007 Why would you want to? By downloading all of your website, all people get is the generated HTML code. They can't see any of your php code. Obviously there is the problem of bandwidth, but i don't suppose huge numbers of people will be doing this anyway. My advice: don't worry about it. Link to comment https://forums.phpfreaks.com/topic/75120-php-site-security/#findComment-379907 Share on other sites More sharing options...
Azu Posted October 30, 2007 Share Posted October 30, 2007 if($_SERVER['SERVER_ADDR']!=$_SERVER['REMOTE_ADDR'])die(); Should work pretty good. Might not perfect but for what you're doing should be good enough ^^ Link to comment https://forums.phpfreaks.com/topic/75120-php-site-security/#findComment-381533 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.