PHP Tutorial: In general, there are two ways of detecting malicious activity. The first is to manually look at how your site is being used, what input is being given etc. The second is to have your program analyse user input for common types of attack, then inform you