johnnyk Posted August 3, 2006 Share Posted August 3, 2006 What should the CHMOD of server side includes be? Link to comment https://forums.phpfreaks.com/topic/16404-chmod-of-ssi/ Share on other sites More sharing options...
trq Posted August 3, 2006 Share Posted August 3, 2006 644 wouldn't hurt. Link to comment https://forums.phpfreaks.com/topic/16404-chmod-of-ssi/#findComment-68276 Share on other sites More sharing options...
onlyican Posted August 3, 2006 Share Posted August 3, 2006 normal 644 will be okif your only including them Link to comment https://forums.phpfreaks.com/topic/16404-chmod-of-ssi/#findComment-68277 Share on other sites More sharing options...
johnnyk Posted August 3, 2006 Author Share Posted August 3, 2006 In my current setup, the .inc files are 644, but the folder that contains them is 755.But I am still about to include the files from other websites. How do I set the CHMOD so that the files cannot be included from any other site? Link to comment https://forums.phpfreaks.com/topic/16404-chmod-of-ssi/#findComment-68297 Share on other sites More sharing options...
onlyican Posted August 3, 2006 Share Posted August 3, 2006 From another website, on another server, you would need to check with the hosting companiesThey normally either block this, or need the IP address to allow access.This is to stop people linking to a connecting file to get into your database Link to comment https://forums.phpfreaks.com/topic/16404-chmod-of-ssi/#findComment-68306 Share on other sites More sharing options...
johnnyk Posted August 4, 2006 Author Share Posted August 4, 2006 Using 644, I can still view the .inc file (when it includes html) direct from browser.Also, can I prevent other sites from using my .incs with the .htaccess hotlinking thing? Link to comment https://forums.phpfreaks.com/topic/16404-chmod-of-ssi/#findComment-69380 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.