I'm building a feedback system & I'm putting IP blocking into it. The feedback works by the a person entering a name, location & message into a form, it gets added to a MySQL database & I can view it later with options to delete it, flag it, & email it.
The way I can think of blocking an IP is:
1- when the user enters details into the form, the IP address gets added to the MySQL database aswell.
2- I can see the IP address in the viewing section (only admins can access the viewing page)
3- If I press the 'Block IP' button the user's comments can't be seen
I'm working on doing this, but is there an easier way to do it?