How to Protect your Images and TMP Directories.

Back to search


Most websites require their images and tmp directories to have Full Write Access. This is in order to store files that are generated by the website itself.

Occasionally there are vulnerabilities in the website's own code. These vulnerabilities can allow a 'hacker' to upload their PHP, or Perl scripts into the affected directories. These files are designed to exploit the website, e.g. to send out massive email spamming campaigns.

TO AVOID THIS:
Create an .htaccess file with the following content and save it in each of the directories that you wish to secure.


<files "*.php"="">
Deny from all
</files>

<files "*.pl"="">
Deny from all
</files>

Allow from all

Also Read

How to install SMF from Softaculous
1 Scroll down until you find SMF in the list on the left. 2 Click SMF. You will be taken to the...
How to decide which script in Softaculous is right for you
As of April 2010, Softaculous contains 138 scripts and applications, so how do you choose the one...
How to install MyBB from Softaculous
Let's see how to install MyBB in Softaculous. 1 Scroll down until you find it in the menu. 2...
How to install phpBB from Softaculous
This demonstration will show you how to install phpBB from Softaculous. 1 Scroll down until you...