Title: phpinfo() within WordFence
Last modified: May 18, 2026

---

# phpinfo() within WordFence

 *  Resolved [Erick](https://wordpress.org/support/users/relozo/)
 * (@relozo)
 * [5 days, 17 hours ago](https://wordpress.org/support/topic/phpinfo-within-wordfence/)
 * Hi,
 * Would you be able to confirm that there’s no publicly available information being
   shown to users visiting the website with WordFence using phpinfo()?
 * Also, if this is possible to get disabled on a plugin level? If not, what functionalities
   uses phpinfo()?

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

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [5 days, 16 hours ago](https://wordpress.org/support/topic/phpinfo-within-wordfence/#post-18910742)
 * Hi [@relozo](https://wordpress.org/support/users/relozo/), thanks for your question.
 * A full `phpinfo()` shouldn’t ever have a reason to be included in a regular public-
   facing page. Wordfence will only trigger it for a logged in admin who chooses
   to view or send diagnostics for troubleshooting purposes from the plugin (**Wordfence
   > Tools > Diagnostics**). There’s no way for regular visitors to your site to
   execute this code, but naturally protecting your admin accounts with complex 
   passwords and 2 factor authentication where possible is always good practice.
 * You can actually use the `disable_functions` in your server’s **php.ini** file
   to specify `phpinfo` if you’re concerned. In that case, the server returns `Warning:
   phpinfo() has been disabled for security reasons`. As that’s just a warning and
   not a fatal error, it shouldn’t prevent Wordfence or anything else that uses 
   it from functioning correctly. Your host can help you with that if you’re unsure
   how to do it.
 * I hope that helps you out,
   Peter.
 *  Thread Starter [Erick](https://wordpress.org/support/users/relozo/)
 * (@relozo)
 * [4 days, 14 hours ago](https://wordpress.org/support/topic/phpinfo-within-wordfence/#post-18912146)
 * Thanks!

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphpinfo-within-wordfence%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Erick](https://wordpress.org/support/users/relozo/)
 * Last activity: [4 days, 14 hours ago](https://wordpress.org/support/topic/phpinfo-within-wordfence/#post-18912146)
 * Status: resolved