Adding code to nginx config file

Defender is asking to add a script to nginx config file (, but where do we add this? FTP does not allow to go above WP root folder)

  • Kris
    • Support

    Hi @d.

    Hope you are doing good today.

    In this case you will need to speak with your hosting support to get access to .conf file or ask them to add this code there.
    The NGINX .conf file is usually located in a subdirectory under /etc/nginx/... or /usr/local/nginx/conf/.

    Adding the code into .conf file in 'nginx' configurations should solve the issue.

    Kind Regards,

  • Ashik
    • Staff

    Hello D.,

    Hope you're doing well today.

    I've escalated your issue to our second level support (SLS) team for further investigation. They'll investigate the issue and follow-up with you here. Your patience is appreciated here as they work with this kind of more complex issues. So, they might delay here to reply.

    We'll need your site /wp-admin login details and SFTP login details for investigation purpose. Please, don't leave your login details on this ticket. Use our contact form here by following this below template.

    Subject: "Attn: Ashikur Rahman"

    Site login:
    WordPress site login URL -
    WordPress admin username -
    WordPress admin password -

    SFTP credentials:
    Host -
    Username -
    Password -
    Port -

    Link back to this thread for reference:

    IMPORTANT: Please make sure you've selected "I have a different question" for your topic. So, it doesn't go back to the forum. The subject line ensures that it gets assigned to me.

    Please confirm here that you sent those credentials.

    Feel free to reply here if you've any more questions or concerns. Looking forward to hearing from you.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.