store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu Apr 17, 2014 10:59 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: script to allow certain requests in a minute
Unread postPosted: Wed Sep 21, 2011 4:51 am 
Offline
New Forum User
New Forum User

Joined: Wed Sep 21, 2011 4:37 am
Posts: 1
Location: Greece
Hello
I would like to know if i can use a script to allow certain request in a minute with modsecurity2.
for example If someone tries connect more than 40 times in a minute at my site i want to blacklist his ip.

I found that

Code:
# Block > 10req/minute
SecAction "phase:1,pass,nolog,initcol:IP=%{REMOTE_ADDR},setvar:IP.pagecount=+1,expirevar:IP.pagecount=60"
SecRule IP:PAGECOUNT "@gt 10" "phase:1,t:none,deny,status:403,msg:'Blocking screen scraper'"


but it doesn't work

Thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group