Hey all,
I've got a problem which has recently started happening with a simple guestbook I made.
Each day I'm getting seriously unwanted posts, seeming it's on a school website. The posts are of the common drugs and porn spam. However I'm not really sure how to prevent this from happening - but its probably because of my simple coding. Which, at the moment, is form to PHP_SELF, and if the vars are set - add to the database. I did however make the input vars $_POST (am I right in thinking this is only when a form is submitted?) but the issue remains.
I'm guessing that somehow an organisation has set out one of those spider scanner things, found vunrable websites and spams them automatically daily. If this is the case, how can I make form submissions secure? in the way that I ONLY want to accept inputs which are from an actual form submission (someone manually opens the page, types and clicks submit).
This problem has made me realise that my scripts are too basic, to an extent that they are a security risk..
Any help would be greatly appreciated!
Thanks!