Menu

can't get QS_ClientEventLimitCount to work

Stefan
2017-04-04
2017-04-04
  • Stefan

    Stefan - 2017-04-04

    Hi,

    after trying several ways to limit the request rate to scripts i came up with this config which does not work:
    19 <If "%{PATH_INFO}="~" \.(php|pl|cgi|py)="" "="">
    20 SetEnv PH_QS_Script 1
    21 </If>
    22 <If "%{REQUEST_FILENAME}="~" \.(php|pl|cgi|py)="" "="">
    23 SetEnv PH_QS_Script 1
    24 </If>
    25
    26 QS_ClientEventLimitCount 20 30 PH_QS_Script

    But it does nothing.

    Both values stay 0:
    PH_QS_Script_Remaining 0
    PH_QS_Script_Counter 0

    But PH_QS_Script is set to 1.

    What's wrong here?

    Thanks!

    Greets,
    Stefan

     
  • Pascal Buchbinder

    I would just use the SetEnvIf directive (IMHO, this makes the configuration simpler)

    SetEnvIf Request_URI \.(php|pl|cgi|py)$ PH_QS_Script=1
    QS_ClientEventLimitCount 20 30 PH_QS_Script
    
     

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.