I am designing internal mail delivery application for the users of my site using PHP and MySQL. In which users can attach attachments like images and others.
but problem occurs when user attach a PHP script or html page as an attachment. Giving direct url to the recipient cause the script/page attached to run on server.
Which in turn dangerous if it has some vulnerable code for the website.
So What I want is :
Can any one help me in this ? I've seen questions similar to this like: Disable PHP in directory (including all sub-directories) with .htaccess
but this is different from that as it specifically asks for iis
environment and web.config
solution(if possible). But others uses .htaccess
or httpd.conf
which both doesnt work on iis
on windows
Thanks in advance.