I'm looking at our Windows Server 2012 R2 logs and can see many of these type of warnings/errors
http://example.com/page.aspx?aa4=1&bb3=20999999.1 union select unhex&c=E,1,4rln7NsBMfSHKp1Oxq9pnezDOpERYplN_SU,&typo=1(hex(version())) -- and 1=1
I've truncated it for ease of readability. I've installed IIS URL rewrite and added rules to deny php requests (which was the initial problem) but now they're coming back with SQL attacks. So i tried adding another rule with the Regular Expression ^.*union (i tried other variations too) but non seem to block the above script?
I then added union to the URL section under Request Filtering but this doesnt work either.
Does anyone have a more feasible way to block these type of requests from reaching the server? Unfortunately i cant make any changes to the site in question as its third party.