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.

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
Was this answer helpful?      

Also Read

Inserting fields into database tables with phpMyAdmin
This tutorial assumes you've already logged in to phpMyAdmin Now let's learn how to insert...
How to change Softaculous' settings and email settings
This tutorial will show you how to change the settings in Softaculous. 1 Click the tools icon....
Copying a database table with phpMyAdmin
This tutorial assumes you've already logged in to phpMyAdmin Now let's learn how to copy a...
How to install MODx from Softaculous
MODx is a content management system, so scroll down until you find the CMS group in the menu. 1...