PHP How to prevent DOS/Spamming

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bcarter19
Forum Newbie
Posts: 1
Joined: Fri Feb 26, 2010 8:37 pm

PHP How to prevent DOS/Spamming

Post by bcarter19 »

I have a website that has a form and gets a lot of DOS/Spamming. I was wondering if there is a way to make it so that you can only fill the form out twice and then it blocks that IP address so it cant fill out the form anymore. Any other suggestions would be appreciated too.

Thanks ahead of time,
Brian
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP How to prevent DOS/Spamming

Post by requinix »

Step 1: Put a CAPTCHA on the form.
Step 2: Set up DoS protection on the server (OS or Apache) not in PHP.
Post Reply