Title: Invalid Request on Prevent PHP Execution
Last modified: February 27, 2022

---

# Invalid Request on Prevent PHP Execution

 *  Resolved [barnettmsiska](https://wordpress.org/support/users/barnettmsiska/)
 * (@barnettmsiska)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/invalid-request-on-prevent-php-execution/)
 * Hi,
 * I am getting the error message “Invalid Request” when I add the .htaccess code
   to my /wp-content directory and run “Re-Check Status” for the Prevent PHP Execution
   security recommendation.
 * I read another thread where it says Cloudflare could be blocking the re-check
   but I do not have Cloudflare on my server. There is also another site on the 
   same server where everything ran successfully, though.
 * There is also something strange that is happening; The Prevent Information Disclosure
   security recommendation is reappearing after the “Invalid Request” error, even
   though it run successfully and was cleared previously.
 * Please advise,
 * Thanks,
 * Barnett

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

 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/invalid-request-on-prevent-php-execution/#post-15408924)
 * Hi [@barnettmsiska](https://wordpress.org/support/users/barnettmsiska/)
 * Sorry to hear you are having this issue.
 * Could you please do the following test?
 * – Click on right button of mouse
    – Click on inspect – Switch to Network tab –
   clear it – Try to re-check again – Check the admin ajax and click on preview
 * Does it return 200 status or any different status?
 * This is for another plugin but the steps is similar: [https://monosnap.com/file/zV2tGS6ijdIXogOS9Wv8cJhmniK900](https://monosnap.com/file/zV2tGS6ijdIXogOS9Wv8cJhmniK900)
 * Let us know what you are getting in the network tab.
 * Best Regards
    Patrick Freitas
 *  Thread Starter [barnettmsiska](https://wordpress.org/support/users/barnettmsiska/)
 * (@barnettmsiska)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/invalid-request-on-prevent-php-execution/#post-15409585)
 * Hi [@wpmudevsupport12](https://wordpress.org/support/users/wpmudevsupport12/),
 * I am getting a 200 status in the network tab and the response is as below;
 * > {“success”:false,”data”:{“message”:”Invalid request”}}
 * Thanks and regards,
 * Barnett
 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/invalid-request-on-prevent-php-execution/#post-15415636)
 * Hello [@barnettmsiska](https://wordpress.org/support/users/barnettmsiska/) !
 * Thank you for running the additional checks. From what it seems, it may be some
   security feature that’s being triggered and may be blocking the checks (not the
   response itself though).
 * Can you contact your hosting provider and ask them to investigate and unblock
   this for you if they find anything of this kind interfering?
 * Contacting hosting support may also be a good idea in case the hosting uses a
   hybrid Apache + nginx setup as the code even if it’s added correctly to Apache
   may still not go through nginx correctly.
 * Warm regards,
    Pawel
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/invalid-request-on-prevent-php-execution/#post-15445390)
 * Hi [@barnettmsiska](https://wordpress.org/support/users/barnettmsiska/),
 * 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

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

The topic ‘Invalid Request on 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/)

 * 4 replies
 * 4 participants
 * Last reply from: [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/invalid-request-on-prevent-php-execution/#post-15445390)
 * Status: resolved