First of all, if you are worried about security, you should use LAMP. As long as the Linux platform uses AppArmor or SELinux (Ubuntu and Fedora respectively), you are significantly more than any version of Windows. I know this first-hand experience in developing exploit code for two platforms.
Before blocking your system, check your code for vulnerabilities using Wapiti . Acunetix is also good, but expensive. This type of testing, especially SQL injection, should be done with the help dispaly_errors=Oninstalled in your php.ini
PHP- , . PHPSecInfo . dispaly_errors=Off - , , phpsecinfo .
-, Mod_secuirty.