Sanitize Uploaded SVG Files to Prevent Stored XSS Attacks
Enables SVG file uploads while stripping malicious embedded JavaScript tags, onclick handlers, and foreign entities before saving to disk.
WordPress hardening, brute-force mitigation, and permission safeguards.
Enables SVG file uploads while stripping malicious embedded JavaScript tags, onclick handlers, and foreign entities before saving to disk.
Enforces HTTPS encryption on all login forms and wp-admin administrative sessions to prevent session cookie interception on public networks.
Prevents automated bots from discovering valid WordPress administrator usernames by requesting /?author=1 query parameters.
Restricts public /wp-json/ user and data endpoints to authenticated users and logged-in administrators only.
Replaces informative login error messages (‘Invalid username’ vs ‘Incorrect password’) with a generic notice to prevent credential enumeration.
XML-RPC pingbacks are frequently exploited in large-scale DDoS amplification and brute-force attacks. This snippet disables dangerous pingback methods without breaking Jetpack or the official WordPress mobile app.
Attackers and botnets use URL parameters like /?author=1 to reveal administrative usernames. This snippet intercepts query parameters and safely redirects or returns a 404 header.
Prevent automated vulnerability scanners from identifying your exact WordPress core version across HTML meta tags, scripts, and RSS feeds.