How to Protect Images Folder ?

This is used to restrict access to images folder to anything other than images, please modify your .htaccess file and insert the thing below, save the .htaccess file and upload to images folder

<FilesMatch "\.(php([0-9]|s)?|s?p?html|cgi|pl|exe)$">
Order Deny,Allow
Deny from all
</FilesMatch>

 

 

  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

Facts & Tips About Gumblar Attacks (iFrame Injection etc)

- Gumblar attacks generally maded with infected windows pcs- Some viruses sniffing your...

Zen Cart Hacked ?

We recommended to refer below article:-...

MUST READ: Security Advice

For your hosting account security and safety reason, we strongly advice all of our clients to...

How to Enable Two Factor Authentication (2FA) for my cPanel?

In order to utilise the improved security offered by Two-Factor Authentication (2FA) you will...

Disabling wp-cron.php in WordPress

WordPress uses a file called wp-cron.php as a virtual cron job, or scheduled task in order to...