Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: .htaccess rules for not executing php in images folder  (Read 2372 times)

0 Members and 1 Guest are viewing this topic.

Aby

  • Guest
.htaccess rules for not executing php in images folder
« on: August 02, 2014, 10:55:07 pm »
.htaccess rules for not executing php in images folder

Add the following code in your .htaccess file in images folder for not to execute PHP in images folder:

order allow,deny
deny from all

# secure directory by disabling script execution
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI

That’s it!!!
====