Free Plugin by DrGlenn

Harden-It

Toggle powerful hardening rules for Apache/LiteSpeed: bot blocking, directory/privacy protections, headers, XML-RPC controls, SQL-injection mitigations, and more—built to play nicely with real sites.

Overview

Harden-It helps close gaps WordPress doesn’t address by default. It applies curated server rules and headers for Apache and LiteSpeed hosts, with per-rule toggles so complex sites can enable only what they want.

Heads-up: Harden-It is one layer. Use it alongside updates, backups, least-privilege access, and a WAF.

Why You’ll Like It

Toggle-based Safe defaults Headers Anti-bot

  • Enable/disable individual protections to fit your stack.
  • Ship proven directives and security headers quickly.
  • Reduce noise (directory listings, user enumeration, hotlinks, etc.).

Key Features

FeatureDescription
Toggle Security RulesActivate or deactivate each rule—great for complex sites that need flexibility.
Block access to .htaccess/.htpasswdProtect critical config files from direct web access.
Bad-Bot FilteringAdd/remove disallow rules to hinder known malicious crawlers.
Disable Directory ListingsPrevents snooping and casual reconnaissance.
Shield Sensitive System FilesDeny access to logs, wp-config.php, php.ini, and similar.
Block Author EnumerationStops ?author= based user-ID probing.
Protect .ini filesBlock reads of configuration files in web scope.
Protect wp-config.phpPrevent direct download of DB credentials and salts.
Restrict xmlrpc.phpDisable or limit access to reduce DDoS/pingback abuse.
Spam Comment ShieldBlock off-domain comment posts; optionally redirect offenders.
Block Blank UA/Referrer/HostDrop suspicious POSTs lacking basic headers.
General Bot ProtectionReduce scraping, cheap DDoS, and resource drain.
No PHP in UploadsStop execution of uploaded PHP in /uploads.
Hide Backups & SourcesBlock access to source/backup artifacts.
Block .zip AccessPrevent bulk downloads of packaged files.
Anti-ClickjackingSend X-Frame-Options to stop iframe embedding.
Security HeadersAdd X-Content-Type-Options, X-XSS-Protection, Strict-Transport-Security, etc.
SQLi MitigationsCommon injection patterns filtered at the server layer.
Anti-HotlinkingStop other sites embedding your assets directly.
Disable XML-RPC PingbacksReduce reflection abuse vectors.
Hide Server SignatureAvoid leaking server version details.
Disable ETagsImprove caching; avoid inode leakage.
Disable TRACEMitigate cross-site tracing issues.
Force HTTPSRedirect HTTP→HTTPS for secure transport.
Block File-Injection PatternsDrop suspicious query strings commonly used in exploits.
Admin by IP (Optional)Restrict /wp-admin by current IP. Use with caution—changes in IP/VPN will block you.

Advanced Tools

Extra helpers for hardening and maintenance:

  • Change File Permissions: Recursively normalize to 755 (dirs) / 644 (files).
  • Modify wp-config.php: Adds DISALLOW_FILE_EDIT, and optional WP_HOME/WP_SITEURL defines.

Installation

  1. Download: harden-it.zip
  2. WordPress admin → Plugins → Add NewUpload Plugin → choose the zip → Install Now.
  3. Click Activate.
  4. Open Harden-It in the admin menu and toggle desired protections.
Test new rules on a staging site if you run unusual rewrites or legacy code.

Best Practices

  • Keep WordPress, plugins, and themes updated.
  • Use strong passwords, 2FA, and least-privilege roles.
  • Maintain verified off-site backups.
  • Pair with a WAF/CDN for edge filtering.

Download

Harden your site with safe defaults and smart server rules.

Disclaimer: This plugin is provided for free without warranty or claims of fitness. Use it as part of a comprehensive security program.

© 2024–2025 DrGlenn. All Rights Reserved.
Visit fixmyhackedwebsite.com for professional help.