View Single Post
Old December 19th, 2007, 7:08 PM   #4 (permalink)
m0nty
Registered User
Seasoned Poster
 
m0nty's Avatar
 
Joined in Jun 2005
Lives in Derbyshire/UK
Hosted on sh106
90 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
and make sure you place an index file index.html in all folders (obviously except where you already use index.html or index.php files)

having an index.html file in all folders will stop people being able to browse the files in that folder. a high risk if there happens to be executable files stored there.

make sure that none of your folders are world writable (chmod 777) that is Bad!! surpass servers i believe all use suexec. therefore you can safely use chmod 755 on ALL folders, even those that require write access by your script for example: an upload script.

remember, if a malicious file gets uploaded to your website, and is executed by a malicious user, he can not only damage your website, but probably that of other websites hosted on the same server.

on my site I have placed a php.ini file in all folders that have directly executed scripts in.
the php.ini file contains the following >

Quote:
register_globals = 0
allow_url_fopen = 0
session.use_only_cookies = 1
obviously if you do actually require any of those or u don't want to force ur users to use cookies then u can remove them. but is better and securer for your sites.
__________________
Smartfactory.ca Module Development Team.
ImpressCMS.org Impress CMS Project: Making a lasting impression!

surpass server: SH106
m0nty is offline   Reply With Quote
This user thanks m0nty for this great post!
Roxy (December 23rd, 2007)