DoomyCheese Posted June 6, 2008 Share Posted June 6, 2008 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 Quote Link to comment Share on other sites More sharing options...
keeB Posted June 9, 2008 Share Posted June 9, 2008 http://php.net/file_read_contents http://php.net/file_put_contents Good luck. Quote Link to comment Share on other sites More sharing options...
darklight Posted June 9, 2008 Share Posted June 9, 2008 You may wanna also add this to the form. http://www.codewalkers.com/c/a/Miscellaneous/Creating-a-CAPTCHA-with-PHP/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.