I'm currently setting up a personal website, and to protect against spamming I want to integrate an IP banning script. I have a contact form which is easily spammed from so I've made sure it includes the IP of the sender incase it's abused. I know a little PHP, but not enough to make what I want.
I have an administration area protected by .htaccess where I would like to keep a simple form for adding/removing IP's to preferably a text file. In the end I want a user on a banned IP address to be redirected here. Even better if I can insert the form into my site template.
Is anyone able to help me with this? Thanks a million in advance