Title: DOCUMENT_ROOT variable in HTTP request
Last modified: September 9, 2019

---

# DOCUMENT_ROOT variable in HTTP request

 *  Resolved [cebln](https://wordpress.org/support/users/cebln/)
 * (@cebln)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/document_root-variable-in-http-request/)
 * Rule 510
    POST /wp-admin/post.php – DOCUMENT_ROOT variable in HTTP request – [
   POST:WooCommerceEventsTicketTheme = / /wp-content/uploads/fooevents/themes/rocko]
 * It has to do with the Plugin “FooEvents for WooCommerce” and stops a shop manager
   from being able to save a freshly duplicated product in WooCommerce.
 * Funny, I could not even find an occurrence of the string “DOCUMENT_ROOT” FooEvents
   plugin folder files.
 * Is this rule so important with modern PHP 7+ and how can I switch the rule #510
   off (not in the rules selector options) without switching off too much?
    Is this
   part of this option “Block localhost IP in GET/POST request”?

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/document_root-variable-in-http-request/#post-11913486)
 * It is “Block the DOCUMENT_ROOT server variable in HTTP request” in the advanced
   firewall policies section. You can disable it, that’s fine.
    `DOCUMENT_ROOT` 
   is a variable populated by your server, not a string, hence you won’t find it
   in the code.
 *  Thread Starter [cebln](https://wordpress.org/support/users/cebln/)
 * (@cebln)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/document_root-variable-in-http-request/#post-11917054)
 * OK thank you,I deactivated that setting now.

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

The topic ‘DOCUMENT_ROOT variable in HTTP request’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [cebln](https://wordpress.org/support/users/cebln/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/document_root-variable-in-http-request/#post-11917054)
 * Status: resolved