Skip to content

wp-config.php was never hardened and runs default settings

A few lines in wp-config.php close the most-abused attack vectors.

Try this first

  1. 1Set DISALLOW_FILE_EDIT to true so admins can't edit code via the dashboard
  2. 2Set WP_DEBUG to false on production, only enable debug logs when troubleshooting
  3. 3Change the DB table prefix away from 'wp_' on new installs
  4. 4Restrict wp-config.php permissions to 600 or 640

When to bring us in

Unsure about chmod and ownership, your host support can set correct permissions.

See also

None of the above fits?

Describe your situation below. We pass your input plus the steps you already saw to our AI and return tailored next-step advice. If it's too risky to DIY, we'll say so.

Who are you?

For the AI question we need your email and company, so we can follow up if the AI gets stuck, and to prevent abuse.

Limited to 2 questions per hour and 5 per day, kept lean so the AI stays useful. For more, contacting us directly works better for you and us.

Or skip the DIY entirely

Our Managed IT clients do not look these things up. One point of contact, a fixed monthly price, resolved within working hours.