Allow to a certain file to be executed

I would like to enable Prevent PHP Execution in Defender, but allow for this file to be executed
/var/www/html/wp-content/plugins/divi-switch/includes/output/divi-style.css.php

Please advise how this can be done.

  • Nithin Ramdas
    • Support Wizard

    Hi Thalia ,

    Could I know on which exact page are you noticing the issue? Have you tried the inbuilt option to add the php file and see whether it works fine?

    You should be able to add files via Defender under Defender Pro > Security Tweaks > Resolved

    [attachments are only viewable by logged-in members]

    Once the path is added, you can click the “Update .htaccess file” button and it should work fine. Could you please check and see whether that works?

    If you still have issues, please do enable support access to the website and also share the link to the page where you are noticing the stylesheet issue so that we could help get you sorted asap.

    Regards,
    Nithin