Skip to content
goTool Español

Solutions · WordPress

www.ejemplo.com: the WordPress error log can be downloaded

With example names (mi-app, /ruta/al/proyecto). In GoTool, in 🛡 Security, this page shows your project's: your container, your compose file, your WordPress folder.

What's happening

https://www.ejemplo.com/wp-content/debug.log answers anyone.

Why it matters

It holds paths, database queries and, often, user data or plugin keys.

What to do

  1. In wp-config.php, turn the log off or move it outside the website:
    define( 'WP_DEBUG_LOG', '/var/log/wordpress/debug.log' );
  2. Delete the existing one (in the WordPress folder):
    rm wp-content/debug.log
  3. And block it in nginx, so it doesn't happen again with another log:
    location ~* \.log$ { deny all; }

How to know it's fixed

  • It must answer 403 or 404:
    curl -sI https://www.ejemplo.com/wp-content/debug.log | head -1

More

CWE-532 · MITRE ATT&CK T1592

In GoTool, the file with the issue (the Dockerfile, the compose file) is also shown with the solution next to it, and the question for Claude comes ready, with your project's details and without your keys, to paste into your claude.ai.

Ask us for a demo