• Resolved webmasterfreya

    (@webmasterfreya)


    Hi,

    error_log
    [Wed Feb 12 07:17:28.847656 2020] [proxy_fcgi:error] [pid 9191] [client 35.186.178.64:54886] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Class ‘getid3_handler’ not found in <path>/httpdocs/wp-includes/ID3/module.audio.ac3.php:18\nStack trace:\n#0 {main}\n thrown in <path>/wp-includes/ID3/module.audio.ac3.php on line 18′

    access log:
    35.186.178.64 – – [12/Feb/2020:07:17:28 +0100] “GET /wp-includes/ID3/module.audio.ac3.php HTTP/1.0” 200 735 “-” “python-requests/2.22.0”

    It’s a hacker directly aiming at module.audio.ac3.php without loading first the necessary class.

    Blocked ip 35.186.178.64

    Are these type of requests preventable (e.g block http-user_agent python-requests/2.22.0) or adding some code to the module.audio.ac3.php to catch the error?

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Please do not try to modify core files. It’s more effective to block requests in .htaccess anyway. If you don’t use Python, blocking by agent is probably more effective than blocking by IP. You cannot add a Deny directive like you can with IPs, you need to block via rewrite rule:

    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} python-requests [NC]
    RewriteRule .* - [F,L]
    Thread Starter webmasterfreya

    (@webmasterfreya)

    Thanks @bcworkz

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP fatal error’ is closed to new replies.