Member Avatar for dartiss

Hi,

I have a couple of sites that are very much read-only (i.e. the sites are complete and not being modified). Is there a way, possibly via .htacces, to make these sites so that nothing could be uploaded to their directories maliciously? Basically, a way to lock the site down.

David.

If you don't have any scripts on your site that allow any user input or any type of uploading, and your folder permissions are set to a ready only access, then I wouldn't worry too much about someone being able to put a file in the directory. htaccess can help with an extra layer of security if you configure it correctly. Here is an article an example article on the topic http://www.askapache.com/htaccess/security-with-htaccess.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.