Jump to content


Photo

CHMOD of SSI


  • Please log in to reply
5 replies to this topic

#1 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 03 August 2006 - 02:20 AM

What should the CHMOD of server side includes be?
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 03 August 2006 - 02:25 AM

644 wouldn't hurt.

#3 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 03 August 2006 - 02:25 AM

normal 644 will be ok
if your only including them
Tell me the problem, I will try tell you the solution

#4 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 03 August 2006 - 03:26 AM

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?
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#5 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 03 August 2006 - 03:43 AM

From another website, on another server, you would need to check with the hosting companies
They 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
Tell me the problem, I will try tell you the solution

#6 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 04 August 2006 - 07:13 PM

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?
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users