Menu

QS_Block question

Anonymous
2010-03-26
2013-05-23
  • Anonymous

    Anonymous - 2010-03-26

    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.

     
  • Pascal Buchbinder

    You should use QS_SetEnvIf to combine multiple variables:

    SetEnvIf Remote_Addr ^192\.168\. QS_Intra
    SetEnvIf Request_URI ".*/createaccount.php" QS_Php
    QS_SetEnvIf QS_Intra QS_Php QS_Block=yes
    QS_ClientEventBlockCount 4 10
    
     
  • Anonymous

    Anonymous - 2010-04-06

    Thank you so much ! :)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.