johnnyk Posted August 3, 2006 Share Posted August 3, 2006 What should the CHMOD of server side includes be? Quote Link to comment Share on other sites More sharing options...
trq Posted August 3, 2006 Share Posted August 3, 2006 644 wouldn't hurt. Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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.