Title: Prevent PHP Execution
Last modified: February 19, 2022

---

# Prevent PHP Execution

 *  Resolved [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/prevent-php-execution/)
 * When I add the code to an htaccess file in the wp-content directory and click
   the recheck status it shows an error “invalid request”. How can this be fixed?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/prevent-php-execution/#post-15384083)
 * Hi [@jmeyer2485](https://wordpress.org/support/users/jmeyer2485/)
 * I hope you are doing good today.
 * Does the site is behind Cloudflare? If so it could block the recheck. Please 
   add you whitelist your site IP on the Cloudflare side.
    You can check your site
   IP here [https://dnschecker.org/](https://dnschecker.org/)
 * Kind Regards,
    Kris
 *  Thread Starter [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/prevent-php-execution/#post-15408813)
 * [@wpmudevsupport13](https://wordpress.org/support/users/wpmudevsupport13/) I 
   am not behind any Cloudflare, just a normal hosted website.
 *  [Nastia Kolomoytseva](https://wordpress.org/support/users/nastaia/)
 * (@nastaia)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/prevent-php-execution/#post-15435094)
 * Hello [@jmeyer2485](https://wordpress.org/support/users/jmeyer2485/)
 * Would you please let us know a few pieces of information about your hosting?
   –
   Is your site hosted on Apache or NGNIX? – Please let us know where your site 
   is hosted?
 * Kind regards,
    Nastia
 *  Thread Starter [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/prevent-php-execution/#post-15452457)
 * [@nastaia](https://wordpress.org/support/users/nastaia/) Apache and NameCheap
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/prevent-php-execution/#post-15460589)
 * Hi [@jmeyer2485](https://wordpress.org/support/users/jmeyer2485/)
 * Thank you for the update.
 * The invalid request means anything is blocking the Defender to check the rules,
   it could be Cloudflare or any server firewall.
 * But since you are not using Cloudflare we would need to run a couple of tests
   first.
 * For the initial test can you please go to WordPress > Tools > Site Health and
   check if it is reporting any issue there?
 * In case no issue is being reported, go to the Defender page to re-check the status,
   click on the right button of mouse > Inspect to open the browser console, ( To
   find more about browser console ) [https://developer.mozilla.org/en-US/docs/Tools/Browser_Console](https://developer.mozilla.org/en-US/docs/Tools/Browser_Console)
 * Click to re-check the status and let us know if you see any error, you can take
   a screenshot, upload it to Google Drive and share the link.
 * Best Regards
    Patrick Freitas
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/prevent-php-execution/#post-15491169)
 * Hi [@jmeyer2485](https://wordpress.org/support/users/jmeyer2485/),
 * Since we haven’t heard from you for a while. I’ll mark this thread as resolved
   for now. Please feel free to re-open the thread if you need further assistance.
 * Best Regards
    Nithin
 *  Thread Starter [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/prevent-php-execution/#post-15494623)
 * [@wpmudevsupport12](https://wordpress.org/support/users/wpmudevsupport12/) There
   were zero errors in the console inspection.
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/prevent-php-execution/#post-15499384)
 * Hi [@jmeyer2485](https://wordpress.org/support/users/jmeyer2485/)
 * Please use this form [https://wpmudev.com/contact/#i-have-a-different-question](https://wpmudev.com/contact/#i-have-a-different-question)
   and make sure that subject is “I have a different question” and:
 * – Mark to my attention: ATTN: Kris
 * – Link back to this thread
 * so that we will follow up there to check this issue for you.
 * Kind Regards,
    Kris
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/prevent-php-execution/#post-15515006)
 * Hello [@jmeyer2485](https://wordpress.org/support/users/jmeyer2485/) ,
 * We haven’t heard from you for a while now, so it looks like you don’t have more
   questions for us.
 * Feel free to re-open this ticket if needed.
 * Kind regards
    Kasia

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Prevent PHP Execution’ is closed to new replies.

 * ![](https://ps.w.org/defender-security/assets/icon-256x256.gif?rev=3435930)
 * [Defender Security - Malware Scanner, Login Security & Firewall](https://wordpress.org/plugins/defender-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/defender-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/defender-security/)
 * [Active Topics](https://wordpress.org/support/plugin/defender-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/defender-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/defender-security/reviews/)

 * 9 replies
 * 6 participants
 * Last reply from: [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/prevent-php-execution/#post-15515006)
 * Status: resolved