I am posting this project again because some of the programmers could not understand what I wanted .
Ok I have a couple of php websites .Lately there have been a few attacks on my websites ,so I need a php function which I can call on the top of my php pages .something like
Now this php function will go through all the POST and GET Variables and scan for XSS attacks ,sql injections etc and will exit with an error if it finds any such instances.
(It would need to filter against all types of sql injection
ie injection using quotes and without quotes
eg 1 - [url removed, login to view]' or 1
eg 2 - [url removed, login to view] union select password from admin )