• Resolved dave.ooo

    (@crossy)


    Hi there,

    For some reason Wordfence is causing all images on our site to error 500. Seemingly this piece of code in .htaccess in /uploads/ is causing this issue.

    Why is that, and how do we stop this from happening?

    # BEGIN Wordfence code execution protection
    <IfModule mod_php5.c>
    php_flag engine 0
    </IfModule>
    <IfModule mod_php7.c>
    php_flag engine 0
    </IfModule>
    <IfModule mod_php.c>
    php_flag engine 0
    </IfModule>

    AddHandler cgi-script .php .phtml .php3 .pl .py .jsp .asp .htm .shtml .sh .cgi
    Options -ExecCGI
    # END Wordfence code execution protection

    Best,
    Dave

    • This topic was modified 2 months ago by dave.ooo.
Viewing 1 replies (of 1 total)
  • Plugin Support wfmargaret

    (@wfmargaret)

    Hi Dave,

    Thanks for reaching out. Please disable the option “Disable Code Execution for Uploads directory” in Wordfence > All Options > General Wordfence Options (if it is enabled) and let me know if the issue persists.

    Thanks,
    Margaret

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.