Naxsi whitelist specifc bot user-agent

16 views
Skip to first unread message

heiko.h...@gmail.com

unread,
Feb 13, 2017, 10:02:39 AM2/13/17
to naxsi-discuss
Hi, 

I'm new to naxsi, I've included the following rule to keep out all bots:

MainRule "str:bot/" "msg:Suspicious User-Agent inbound (bot)" "mz:$HEADERS_VAR:User-Agent" "s:$ATTACK:4,$UWA:4" id:42000039;

Works as designed, but there is one bot which I had to allow access, identified by 

Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)

Unfortunately I didn't succeed in building the right whitelist rule for this 

nx_util reported to me

BasicRule wl:42000039 "mz:$HEADERS_VAR:user-agent";

which I extended to

BasicRule wl:42000039 "mz:$HEADERS_VAR:User-Agent:str:\bUptimeRobot\b";

which does not work.


I appreciate your help.

Heiko




Reply all
Reply to author
Forward
0 new messages