Skip to main content

Adding to CSF's Temporary Deny via PHP

Comments

2 comments

  • fuzzylogic
    If this is correct,
    and if it's found they get a Forbidden error.

    then you are 90% there already. CSF has configuration settings to manage how to add IPs to the firewall that repeatedly generate 403 http status with their requests. These settings are used by a LFD action to set Number of 403s to trigger and to set Permanent Block or Temp block with period. Search CSF configuration page for... LF_APACHE_403 LF_APACHE_403_PERM LF_INTERVAL for usage instructions. Perhaps post a sample entry from apache's error_log of an ip in your database generating a 403 status to see if its likely to be a candidate for the LF_APACHE_403 action. Anonymize the server ip and client ip.
    0
  • cPanelMichael
    Hello @GoWilkes, Let us know if the information in the previous post helps. Thank you.
    0

Please sign in to leave a comment.