preg_match(): Unknown modifier in 403.php on line 159

Home Forums BulletProof Security Pro preg_match(): Unknown modifier in 403.php on line 159

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41939
    Eduardo
    Participant

    Guys,

    I´m getting in my PHP Error log:

    [09-Jun-2022 18:08:58 UTC] PHP Warning: preg_match(): Unknown modifier '5' in /home/newtonpaiva/www/wp-content/plugins/bulletproof-security/403.php on line 159

    Any ideia?

    Thanks!
    Eduardo

    #41940
    AITpro Admin
    Keymaster

    The problem is that one or more of your Security Log ignore User Agent rules is invalid, which is breaking the preg_match condition.  Do the steps below.

    Go to the BPS Pro Logs|Info menu > Security Log > click the Remove|Allow button (do not enter anything in the text box).
    A list of your User Agent Ignore rules will be displayed.
    Copy and paste them in your forum reply so I can take a look at them.

    #41941
    Eduardo
    Participant

    Thanks for the reply!

    The list:

    Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)
    Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)

    #41942
    AITpro Admin
    Keymaster

    To ignore the Uptime Bot User Agent you would use this for the ignore rule: UptimeRobot.  Delete you current User Agent ignore rules and create a new User Agent ignore rule for the Uptime Bot.

    Or you can whitelist the Uptime Bot so that it will no longer be blocked > https://forum.ait-pro.com/forums/topic/security-log-entries-for-uptimerobot-head-requests/

    If a particular User Agent/Bot is being logged excessively in your Security Log file you can Ignore/Not Log that particular User Agent/Bot based on the HTTP_USER_AGENT string in your Security Log. Example User Agent strings: Mozilla/5.0 (compatible; 008/0.85; http://www.80legs.com/webcrawler.html) Gecko/2008032620 and facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php). You could enter 008 or 80legs or webcrawler to Ignore/Not Log the 80legs User Agent/Bot. You could enter facebookexternalhit or facebook or externalhit_uatext to Ignore/Not Log the facebook User Agent/Bot.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.