Skip to main content

CSF Blocking - PHP Warning

Comments

6 comments

  • GOT
    You need to look in the modsecuroty tools area and search on their IP to see what rule they are triggering and most likely you'll just want to disable that rule.
    0
  • carlos_tlewis
    Hi GOT, Thanks for the reply! Sorry I'm not sure where I can find which rule is triggering it, I've had a look around but can only find: May 8 23:50:06 server lfd[30446]: (mod_security) mod_security (id:214420) triggered by ***IP*** (****): 5 in the last 3600 secs - *Blocked in csf* [LF_MODSEC]
    Sorry to be a pain! If you could point me in the right direction I would really appreciate it.
    0
  • GOT
    Sorry I was not more specific. In WHM click on ModeSecurity Tools and in the search bar, search on the IP that is getting blocked. That will show you what rule is being trigged and from there you can click on the rrule and disable it.
    0
  • carlos_tlewis
    Thanks GOT. I understand now - I was in the wrong area! Cheers for the help, hopefully this has fixed it.
    0
  • fuzzylogic
    @carlos_tlewis Your initial post showed the rule ID that was causing the 403 response. It is [id "214940"> but you should NOT disable this rule. To do so would allow all outgoing rule violations. Rule 214940 is triggered by the value of the variable TX:OUTGOING_POINTS being greater than tx.outgoing_points_limit The TX:OUTGOING_POINTS variable will have been loaded by earlier rule hits for rule violations in the http RESPONSE Due to the PHP Warning that was also in your initial post I suspect that the string Warning: was in the RESPONSE_BODY This would have triggered outgoing rules 214420 and 217800 loading TX:OUTGOING_POINTS with 6 points, enough to trigger rule 214940 To verify this search: /usr/local/apache/logs/modsec_audit.log for the [unique_id "****"> value that was anonymized in your first post. If you want more detailed assistance post what is in the modsec_audit.log for this request. If rules 214420 and 217800 were the ones hit then I would try... Disabling rule 214420 It only looks for the string Warning: where rule 217800 looks for 215 strings the first one being Warning:
    0
  • cPanelLauren
    @carlos_tlewis let us know if you have any questions in regard to the response by @fuzzylogic
    0

Please sign in to leave a comment.