Image Directory Security with htaccess
19
Jun2
Jun2
Some hackers or attackers try to upload script files in image upload files and they can see and change your files with that script. You can block this type file in that directories. You can forbidden type of files and close execution of CGI.
.htaccess
# secure directory by disabling script execution AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi .aspx Options -ExecCGI
From: http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec16
2 Comments
Sorry, the comment form is closed at this time.


07:28 on June 21st, 2009
thanks
07:03 on September 25th, 2009
pls how to Stop Image Hotlinking with .htaccess ?