Having trouble passing server variable info to exec command

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 5
Joined: 07 Oct 2016, 10:55

Having trouble passing server variable info to exec command

07 Oct 2016, 11:18

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
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?

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Having trouble passing server variable info to exec comm

26 Oct 2016, 09:39

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.

User avatar
Posts: 5
Joined: 07 Oct 2016, 10:55

Re: Having trouble passing server variable info to exec comm

03 Nov 2016, 10:48

Okay, I guess that clears things up. Thank you.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 19 guests