Having trouble passing server variable info to exec command
3 posts
• Page 1 of 1
- VinceOmega
- Posts: 5
- Joined: 07 Oct 2016, 10:55
Having trouble passing server variable info to exec command
Hey, I'm having an issue passing the values for the two server variables into an exec command for the mod_antibot module of Helicon Ape.
Here's a snippet of what I'm trying to do
I'm trying to get the back reference for the REMOTE_ADDR and HTTP_USER_AGENT in particular. What gets passed in the .bat file via the console command is the literal string (i.e. %1 and %3)
What am I doing wrong exactly?
Here's a snippet of what I'm trying to do
- Code: Select all
AntibotCond %{REMOTE_ADDR} (.+)
AntibotCond %{REQUEST_URI} (/hotels-checkout\.html|/hotels-confirmation\.html|/hotels-details\.html|/hotels-search\.html)
AntibotCond %{HTTP_USER_AGENT} (bingbot|yahoo|slurp|curl|script|seamonkey|MJ12bot|adsBot|site|lock|spider|ok|http|ips|agent|Image|BLEX|yandex|scout|jet|atomic|email|hunter|duck|sogou|exabot) [NC]
AntibotRule 3:crawl:%{REMOTE_ADDR} 1 per 30 seconds [ban=30 minutes,exec=C:\Code\MY_SITE\writeLog.bat %1 %3]
I'm trying to get the back reference for the REMOTE_ADDR and HTTP_USER_AGENT in particular. What gets passed in the .bat file via the console command is the literal string (i.e. %1 and %3)
What am I doing wrong exactly?
Re: Having trouble passing server variable info to exec comm
Hello.
I am sorry for the delay. Unfortunately feature of passing parameters to the exec command is not implemented yet in mod_antibot. I will add this feature to the module in future releases.
I am sorry for the delay. Unfortunately feature of passing parameters to the exec command is not implemented yet in mod_antibot. I will add this feature to the module in future releases.
- VinceOmega
- Posts: 5
- Joined: 07 Oct 2016, 10:55
Re: Having trouble passing server variable info to exec comm
Okay, I guess that clears things up. Thank you.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 31 guests