blocking IPs

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

blocking IPs

Post by itsmani1 »

Every One
Hello and Marry Christmas

I want to block all those IPs who are attacking my web page more than 50 times a day. I mean if some is trying access my web page using some script this IP needs to be blocked. How can i do this?

One option is i save ever IP in the database and see if some IP has accessed my site more than 50 times a day i will block that IP for that day.

Problem: Few days back someone tried to access my page 15-25 times/second. and i want to stop this and want to make sure that this don't happen again?

Is there any other solution to this problem?

Thank you,
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post by dibyendrah »

Yes. Storing a IP, date/time, HTTP request and querying the database would make your work easier.
R@mzes
Forum Newbie
Posts: 3
Joined: Fri Jan 05, 2007 3:48 am

Post by R@mzes »

ozgur uksal
Forum Newbie
Posts: 3
Joined: Wed Jan 17, 2007 10:25 pm

PHP IP Blocking

Post by ozgur uksal »

Post Reply