Hi,
I've put this in my conf file:
SetEnvIf Remote_Addr ^192\.168\. QS_Intra
SetEnvIf Request_URI ".*/createaccount.php" QS_Php
SetEnvIf QS_Intra QS_Php QS_Block=yes
QS_ClientEventBlockCount 4 10
What I'm trying to do is block specified web page from 192.168.x.x. after 4 hits in 10 sec;
I believe the problem is in that line :
SetEnvIf QS_Intra QS_Php QS_Block=yes
because
SetEnvIf Request_URI ".*/createaccount.php" QS_Block=yes
works just fine, but with no IP range specified.
any ideas ?
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've put this in my conf file:
SetEnvIf Remote_Addr ^192\.168\. QS_Intra
SetEnvIf Request_URI ".*/createaccount.php" QS_Php
SetEnvIf QS_Intra QS_Php QS_Block=yes
QS_ClientEventBlockCount 4 10
What I'm trying to do is block specified web page from 192.168.x.x. after 4 hits in 10 sec;
I believe the problem is in that line :
SetEnvIf QS_Intra QS_Php QS_Block=yes
because
SetEnvIf Request_URI ".*/createaccount.php" QS_Block=yes
works just fine, but with no IP range specified.
any ideas ?
Thank you.
You should use QS_SetEnvIf to combine multiple variables:
Thank you so much ! :)