Admin-Ahead Community

Linux => General Linux => Topic started by: Aby on August 02, 2014, 10:55:07 pm

Title: .htaccess rules for not executing php in images folder
Post by: Aby 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!!!
====