Back to search

How to Protect your Images and TMP Directories.

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.

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 "*.pl"="">
Deny from all

Allow from all
Was this answer helpful?      

Also Read

Uploading files using FTP Voyager
This tutorial assumes you already have FTP Voyager running on your computer and are connected to...
How to install Coppermine from Softaculous
1 Scroll down until you find Coppermine in the menu on the left. 2 Click Coppermine. This...
How do I know what is the best hosting option for my website?
Your hosting option will be determined by the amount of disk-space, MySQL Databases, email...
How to install a script using Softaculous
For the most part, all scripts in Softaculous install the same way with a few minor differences....