Title: Code Execution Allowed in Public Folder
Last modified: August 6, 2024

---

# Code Execution Allowed in Public Folder

 *  Resolved [kathywirth](https://wordpress.org/support/users/kathywirth/)
 * (@kathywirth)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/code-execution-allowed-in-public-folder/)
 * Hi. Really Simple SSL just started displaying “Code Execution Allowed in Public
   Folder.” When I save the option to disable this, the message remains.
 * I contacted my host, Dreamhost, and they replied:
 * “the notice for “Code execution is allowed in the public
   ‘Uploads’ folder.” should
   remove on it’s own however the code is executevia .htaccess file which is not
   used in nginx. In this case, you wouldneed to contact reallysimplessl to see 
   if they support nginx or have analternative rule we can add to the nginx.conf
   file rather than theuploads directory.”
 * Any help much appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcode-execution-allowed-in-public-folder%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mark](https://wordpress.org/support/users/markwolters/)
 * (@markwolters)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/code-execution-allowed-in-public-folder/#post-17938054)
 * Hi [@kathywirth](https://wordpress.org/support/users/kathywirth/),
 * to prevent code execution in the uploads folder on NGINX your host can add the
   following code to your NGINX config:
 *     ```wp-block-code
       location ~* /uploads/.*\.php$ {
           return 503;
       }
       ```
   
 * Let me know if you have any other questions.

Viewing 1 replies (of 1 total)

The topic ‘Code Execution Allowed in Public Folder’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mark](https://wordpress.org/support/users/markwolters/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/code-execution-allowed-in-public-folder/#post-17938054)
 * Status: resolved