=== Security Ninja – WordPress Security Plugin & Firewall ===
Contributors: lkoudal, cleverplugins, freemius
Donate link: https://wpsecurityninja.com/
Tags: security, malware, firewall, virus, login
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Requires at least: 4.7
Tested up to: 6.8.2
Stable tag: 5.247
Requires PHP: 7.4

Ultimate WordPress security plugin with malware scanning, firewall, and login protection. Keep your site safe from threats effortlessly.

== Description ==

Protect your WordPress website from hackers, malware, and security vulnerabilities with Security Ninja, a trusted WordPress security plugin since 2011. This all-in-one security solution safeguards your site with 50+ security tests, malware scanning, a firewall, brute force attack protection, and real-time vulnerability detection.

Security Ninja Plugin proactively identifies security risks, ensuring your WordPress website stays secure without slowing it down. With features like automated security scans, login protection, IP blocking, and two-factor authentication (2FA), it provides comprehensive website protection against cyber threats.

Whether you're a beginner or an advanced user, Security Ninja is designed for effortless WordPress security management, keeping your site safe while you focus on growing your business. Install today and take control of your website's security!

This plugin can be downloaded for free without any paid subscription from <a href="https://wordpress.org/plugins/security-ninja/">the official WordPress repository</a>.

**Why Choose Security Ninja? – The Ultimate WordPress Security Plugin**

- **Comprehensive Security Testing** – Run 50+ WordPress security tests to detect vulnerabilities before hackers exploit them.
- **Enhanced Vulnerability Scanner** – Stay ahead of emerging threats with proactive alerts for vulnerabilities.
- **Core Scanner** - Find and remove modified and unwanted files in your WordPress core files.
- **Advanced Malware Scanner (PRO)** – Identify and remove malicious code, hidden threats, and suspicious files instantly.
- **Powerful Firewall Protection (PRO)** – Block brute-force attacks, unauthorized logins, and suspicious IPs with real-time security.
- **Secure Login & 2FA (PRO)** – Strengthen your WordPress login page with Two-Factor Authentication (2FA) and login attempt limits.
- **Cloud-Based Threat Intelligence (PRO)** – Stay ahead of cybercriminals with real-time updates on the latest security threats.
- **One-Click Security Fixes (PRO)** – Fix security issues instantly with an easy-to-use, beginner-friendly dashboard.
- **Automated Security Scans & Reports (PRO)** – Schedule scans and get detailed reports sent to your inbox.
- **Activity Log & User Tracking (PRO)** – Track all user actions on your WordPress website with a detailed activity log and receive alerts for suspicious activity.




**Key Features of Security Ninja – The Ultimate WordPress Security Plugin**

Security Ninja is a powerful WordPress security plugin designed to protect your website from hackers, malware, brute-force attacks, and security vulnerabilities. With 50+ security tests, real-time malware scanning, a firewall, and login protection, Security Ninja keeps your WordPress site secure without slowing it down.

**Comprehensive WordPress Security Testing**

Security Ninja performs 50+ advanced security tests to identify vulnerabilities before hackers exploit them. This includes:

- **Brute-force protection** – Blocks unauthorized login attempts to prevent forced entry.
- **File integrity monitoring** – Detects unauthorized changes to WordPress core files, themes, and plugins.
- **Database security checks** – Identifies weak database permissions and potential SQL injection threats.
- **User role audits** – Ensures no unauthorized administrator accounts exist.
- **Security misconfiguration scans** – Identifies and fixes weak settings that could compromise security.

**Enhanced Vulnerability Scanner**

- **Stay Ahead of Threats** – Our vulnerability scanner proactively alerts you to known vulnerabilities, allowing you to address potential threats before they exploit your website.
- **Comprehensive Protection** – Security Ninja not only checks and warns for common issues but also checks for known vulnerabilities in plugins and themes.
- **Peace of Mind** – Knowing your site is monitored for the latest vulnerabilities means you can focus on what matters most, growing your business and creating content, worry-free.


**Core Scanner – Comprehensive Protection for Your WordPress Installation**

The Core Scanner module adds a critical layer of security by ensuring your WordPress installation remains untampered and free of unauthorized files.

- **Full Core File Integrity Check**: Every file in your core WordPress folders is scanned to ensure it hasn't been modified or compromised.
- **Detection of Unknown Files**: The scanner flags any extra or unknown files in your core WordPress directories, alerting you to potential threats.
- **Built-in File Viewer**: Review flagged files directly within your WordPress dashboard using the integrated file viewer for a clear and easy inspection.
- **Restore Core Files**: If a core WordPress file has been altered, you can quickly restore it with a single click, ensuring your site is running the official version.
- **Easy File Management**: For unknown or suspicious files, you have the option to delete them right from the interface, keeping your WordPress installation clean and secure.


**Advanced Malware Scanner – Detect & Remove Malware Instantly (PRO)**

Security Ninja includes a high-performance malware scanner that automatically checks your WordPress core, plugins and themes for:

- **Malicious scripts and backdoors** – Identifies hidden malware and harmful injections.
- **Trojan and virus detection** – Scans for suspicious PHP and JavaScript entries.
- **One-click malware removal** – Instantly quarantine and delete infected files.

**WordPress Firewall & Real-Time Threat Protection (PRO)**

The Web Application Firewall (WAF) blocks hacker attempts, bot attacks, and brute-force login attempts before they can damage your site.

- **Real-time protection** – Prevents malicious traffic and automated hacking attempts.
- **IP & Country Blocking** – Restrict access from high-risk countries and blacklisted IPs.
- **Cloud-Based Threat Intelligence** – Updated with the latest security threats.

**Login Security & Two-Factor Authentication (2FA) (PRO)**

Your WordPress login page is a primary target for hackers. Security Ninja enhances login security with:

- **Two-Factor Authentication (2FA)** – Requires additional verification for safer logins.
- **Brute-force attack protection** – Limits failed login attempts to block unauthorized access.
- **Rename login** - Getting a lot of requests to your login form? Hide it for spammers.

**One-Click Security Fixes & WordPress Hardening (PRO)**

Manually fixing security issues is time-consuming. Security Ninja provides one-click hardening to:

- **Disable XML-RPC** – Blocks common DDoS attacks and brute-force exploits.
- **Restrict file editing** – Prevents unauthorized theme and plugin modifications.
- **Hide PHP error messages** – Stops hackers from exploiting sensitive error details.

And many more fixes to harden your WordPress security!

**Activity Log & User Tracking (PRO)**

Keep track of all actions on your WordPress website with a detailed activity log:

- Monitor failed login attempts, plugin activations, file changes, and user actions.
- Receive email alerts whenever suspicious activity is detected.
- Export security logs for audits and compliance reports.
- The plugin includes webhook functionality so you can integrate with any other 3rd party service, maybe send updates in the company Slack channel when a hack attempt was thwarted?

**Automated Security Scans & Reports (PRO)**

Security Ninja performs scheduled security scans and sends reports directly to your inbox.

- Set up daily, weekly, or monthly security scans.
- Receive email alerts about vulnerabilities and malware infections.
- Analyze detailed reports to keep your website secure.

**Block Spam & Malicious Bots Instantly (PRO)**

Hackers and spammers use bots to exploit WordPress websites. Security Ninja prevents:

- **Fake registrations and spam comments** – Stops bots from even getting to your site.
- **Malicious bot attacks** – Blocks scripts attempting to hack your site.
- **Unwanted traffic** – Reduces server load by preventing unnecessary bot access.

---

**Join thousands of satisfied users who trust Security Ninja to keep their websites safe. Start protecting your online presence today and help yourself to peace of mind.**

**Why Security Ninja is Best WordPress Security Plugin**

Security Ninja is the best WordPress security plugin because it provides a comprehensive, lightweight, and easy-to-use solution to protect your website from hackers, malware, and vulnerabilities. With 50+ security tests, an advanced malware scanner, a firewall, and two-factor authentication (2FA), it ensures complete website protection without slowing down performance.

Unlike bloated security plugins, Security Ninja is optimized for speed and efficiency. It offers one-click security fixes, automated scans, real-time threat detection, and login protection, making it ideal for beginners and advanced users alike. Trusted since 2011, it keeps thousands of websites secure while offering proactive protection against cyber threats.

===Extensions===
* MainWP - The MainWP Dashboard allows administrators to manage many WordPress websites from a central location.

Install the **FREE <a href="https://wordpress.org/plugins/security-ninja-for-mainwp/" target="_blank">Security Ninja for MainWP Extension</a>** to get an overview of all websites you have installed Security Ninja on!

https://wordpress.org/plugins/security-ninja-for-mainwp/


===Security Tests for your website===
# Security Ninja - Your WordPress Guardian

## Key Features

- **Immediate Vulnerability Alerts**: Get instant notifications about vulnerabilities to keep your website safe and secure.

- **Comprehensive One-click Security Audit**: With just one click, perform over 50+ detailed security checks that scrutinize every corner of your site for security vulnerabilities and performance issues.

- **You're in Command**: Security Ninja respects your autonomy, providing insights and recommendations without making unsolicited changes to your site.

- **Holistic Security Evaluation**: Comprehensive checks on everything from the WordPress core, plugins, and themes to ensure they are up-to-date and secure.

- **Proactive Defense Strategies**: Equip yourself with the tools and knowledge to prevent attacks before they happen, safeguarding your site from potential threats.

- **Optimization Beyond Security**: Improve your site's performance with database optimization tips, ensuring a seamless experience for your users.

- **Knowledge**: Each test comes with an easy-to-understand explanation, documentation, and actionable steps to fix identified issues.

- **Customized Security Insights**: Tailored security assessments to check critical updates and configurations specific to your WordPress setup for a personalized protection strategy.

- **Future-Proof Your Site**: Stay ahead with tests that include the latest WordPress features and best practices for site security.

- **Prevent Unauthorized Access**: Strengthen your defenses with checks designed to prevent weak passwords and unauthorized file access.

- **Secure Configuration Checks**: Ensure your website is configured according to security best practices, from file permissions to security headers, for comprehensive protection against threats.

Enhance your website's security, performance, and user experience with Security Ninja - your trusted partner in WordPress protection.


> **Security Ninja Pro** has extra features: Firewall, Block Suspicious Page Requests, Country Blocking, Core Scanner, Malware Scanner, Auto Fixer for some of the tests, Events Logger & Scheduled Scans.

An all-in-one security solution for any site. With premium support and continuous updates Security Ninja **Pro** is a perfect tool to keep your site safe. <a href="https://wpsecurityninja.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=see-what-pro-offers">See what the PRO version offers</a>

Automatically block **600+ million bad IPs** with one click! <a href="https://wpsecurityninja.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=cloud-firewall">Security Ninja Pro Firewall</a> will help you stay one step ahead of bad guys by using the collective know-how of millions of attacked sites, and ban bad guys before they even open your site.

> Read more about Pro features on the <a href="https://wpsecurityninja.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=readmoreaboutpro">Security Ninja website</a>

**What others say about the plugin**

* <a href="https://wpmayor.com/security-ninja-review-wordpress-security-plugin/">WP Mayor: "Easy-to-Use WordPress Security Plugin"</a>
* <a href="https://wplift.com/security-ninja-review">WPLift</a>
* <a href="https://www.wpexplorer.com/wordpress-security-can-security-ninja-keep-your-site-safe/">WPExplorer</a>
* <a href="https://wploop.com/security-ninja-review/">WP Loop</a>
* <a href="https://www.bitcatcha.com/blog/security-ninja-plugin-review/">Bitcatcha.com</a>
* <a href="https://www.webhostingsecretrevealed.net/blog/wordpress-blog/10-actionable-wordpress-security-tips/">WebHostingSecretRevealed</a>
* <a href="https://www.ravisinghblog.in/wp-security-ninja-review/">Ravi Singh</a>
* <a href="https://tutorials7.com/security-ninja-review.html">Tutorials 7</a>
* <a href="https://www.onlinedecoded.com/security-ninja-review/">onlinedecoded.com</a>

**Tests**
* The tests include:
  * brute-force attack on user accounts to test password strength
  * numerous installation parameters tests
  * file permissions
  * version hiding
  * 0-day exploits tests
  * debug and auto-update modes tests
  * database configuration tests
  * Apache and PHP related tests
  * WP options tests


* Complete list of tests:
  * Check if Application Passwords feature is enabled (new to WP 5.6)
  * Check if WordPress core is up to date
  * Check if automatic WordPress core updates are enabled
  * Check if plugins are up to date
  * Check if there are deactivated plugins
  * Check if active plugins have been updated in the last 12 months
  * Check if active plugins are compatible with your version of WP
  * Check if themes are up to date
  * Check if there are any deactivated themes
  * Check if full WordPress version info is revealed in page's meta data
  * Check if REST API links are displayed in page's meta data
  * Check the PHP version is up to date
  * Check the MySQL version
  * Check if server response headers contain detailed PHP version info
  * Check if expose_php PHP directive is turned off
  * Check if user with username "admin" and administrator privileges exists
  * Check if "anyone can register" option is enabled
  * Check user's password strength with a brute-force attack
  * Check for display of unnecessary information on failed login attempts
  * Check if database table prefix is the default one
  * Check if security keys and salts have proper values
  * Check the age of security keys and salts
  * Test the strength of WordPress database password
  * Check if general debug mode is enabled
  * Check if the debug.log file exists
  * Check if database debug mode is enabled
  * Check if JavaScript debug mode is enabled
  * Check if display_errors PHP directive is turned off
  * Check if WordPress installation address is the same as the site address
  * Check if <i>wp-config.php</i> file has the right permissions (chmod) set
  * Check if register_globals PHP directive is turned off
  * Check if PHP safe mode is disabled
  * Check if allow_url_include PHP directive is turned off
  * Check if plugins/themes file editor is enabled
  * Check if uploads folder is browsable by browsers
  * Test if user with ID 1 and administrator role exists
  * Check if Windows Live Writer link is present in pages' header data
  * Check if <i>wp-config.php</i> is present on the default location
  * Check if MySQL server is connectable from outside with the WP user
  * Check if EditURI link is present in pages' header data
  * Check if TimThumb script is used in the active theme
  * Check if the server is vulnerable to the Shellshock bug #6271
  * Check if the server is vulnerable to the Shellshock bug #7169
  * Check if admin interface is delivered via SSL
  * Check if MySQL account used by WordPress has too many permissions
  * Test if a list of usernames can be fetched by looping through user IDs on http://siteurl.com/?author={ID} (also called username enumeration)
  * Check if server response headers contain Strict-Transport-Security
  * Check if server response headers contain X-Frame-Options
  * Check if server response headers contain X-Content-Type-Options
  * Check if server response headers contain Content-Security-Policy
  * Check if server response headers contain Strict-Transport-Security
  * Check if server response headers contain Referrer-Policy
  * Check if server response headers contain Feature-Policy
  * Check for unwanted files in your root folder you should remove

**License info**

* <a href="https://github.com/carhartl/jquery-cookie">jQuery Cookie Plugin, Copyright 2013 Klaus Hartl</a>

* The vulnerability scanner uses data from the <a href="https://nvd.nist.gov/">National Vulnerability Database - NVD</a>

* This product includes IP2Location LITE data available from <a href="https://lite.ip2location.com">https://lite.ip2location.com</a>.

* This plugin uses the <a href="https://github.com/collizo4sky/persist-admin-notices-dismissal">Persist Admin notice Dismissals</a> by Collins Agbonghama @collizo4sky

* Firewall rules are based on 8G Firewall by Jeff Starr - https://perishablepress.com/8g-blacklist/

= How can I report security bugs? =

You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. [Report a security vulnerability.](https://patchstack.com/database/vdp/security-ninja)


== Installation ==

= Installing from WordPress =

1. Open WordPress admin, go to Plugins, click Add New
2. Enter "Security Ninja" in search and hit Enter
3. Plugin will show up as the first on the list, click "Install Now"
4. Activate & go to Tools - Security Ninja to make your site more secure

= Installing Manually =

1. Download the plugin.
2. Unzip it and upload to _wp-content/plugin/_
3. Open WordPress admin - Plugins and click "Activate" next to the plugin
4. Activate & go to Security Ninja to make your site more secure

== Frequently Asked Questions ==

= Who is this plugin for? =
Security Ninja is perfect for anyone looking to bolster their site's defenses against hackers and ensure robust security.

= Will this plugin slow down my site? =
No significant slowdown occurs. You might notice a brief slow down during scanning, lasting less than a minute.

= Will it work with my theme? =
Yes, Security Ninja is designed to be compatible with all themes, ensuring wide-ranging applicability.

= What changes will Security Ninja make to my site? =
Security Ninja performs diagnostics and offers recommendations without making any direct changes to your site.

= How safe is this plugin? =
Absolutely safe. It functions solely as a diagnostic tool, providing insights without altering your site.

= Is using Security Ninja legal? =
Yes, it's completely legal for your own site. It's designed to run tests on the site where it's installed, aiding in your site's security enhancement.

= What if I encounter issues with the plugin? =
While we strive for universal compatibility, if you face any issues, our support team is ready to assist. Visit our [support forum](https://wordpress.org/support/plugin/security-ninja) to open a new thread, and we'll help you as soon as possible.


== Screenshots ==

1. Fast & easy to understand interface.
2. Security Ninja test results are simple and easy to read.
3. Vulnerable plugins list with details and recommendations - prevent known exploits in plugins.
4. Core scanner

== Changelog ==

= 5.247 =
* FIX: Multisite activation issues - Database tables now properly created for all sites in multisite networks
* FIX: PHP 8.1+ compatibility - Added safe string functions to prevent deprecation warnings
* IMPROVED: Code refactoring - Moved utility functions to dedicated classes
* IMPROVED: Enhanced multisite compatibility for all security tests
* IMPROVED: Test execution system, in particular to multisite testing.
* IMPROVED: Vulnerability scanner - Fixed time difference calculation for "Last Updated" display
* IMPROVED: Vulnerability file download - Simplified to single "Download All Files" button
* IMPROVED: Freemius integration - Added license validation hooks to ensure premium tables are created


= 5.246 =
* Languages! Lots of language changes.


= 5.245 =
* NEW: Enhanced test interface with smooth animations - Tests now show spinner animations during execution and completion highlights for better visual feedback.
* NEW: 2FA - Use E-mail based codes or app - Several users wanted to be able to choose email instead of app-based authentication.
* Fix: Removed minimum of 5 days in 2FA grace period.
* Fix: Some users reported settings reset - we tracked it to a race-condition where an update could overwrite the settings if not loaded yet.
* Fix: Error with importing latest settings that included malware scanner results. Trimmed down the export settings.

= 5.244 =
* Fix: Minor adjustment to file-viewer class, function to check where file is located.

= 5.243 =
* Fix: Problem with 404 Guard not displaying statistics properly in admin page.
* Fix: Corrected an issue where the firewall would block frontend access for banned IPs even when the setting to only block login pages was enabled.
* Fix: Removed posibility for administrators to view any file on server by generating hash manually. Limited core scanner to only view files in core WordPress folders.
* IMPROVED: Implemented centralized security system with dual validation (hash + nonce) for all file access
* IMPROVED: Added time-limited file access tokens
* IMPROVED: Enhanced file path validation to prevent directory traversal attacks
* FIX: "View File" buttons no longer appear for non-viewable file types, preventing user confusion
* FIX: WPVivid Backup Pro - No more false positives in malware scanner.
* IMPROVED: Malware Scanner improved to be faster and use more detailed whitelisting system.
* FIX: Malware scanner improved results with more detailed whitelisting.


= 5.242 =
* FIX: Enhanced REST API protection to prevent blocking legitimate API calls. Thank you Alex.
* FIX: Firewall settings randomly deactivates in rare cases.
* FIX: Change login URL feature did not properly save its state.
* NEW: Added WooCommerce protection to the Wizard for new installations.
* IMPROVED: Firewall settings module loads more efficiently, moved non-essential code to sub structure to improve load time in and out of admin.
* IMPROVED: Dashboard Widget visually improved and contains more practical information.

= 5.241 =
* IMPROVED: Vulnerability Scanner - Fixed details display and theme update links
  * Fixed collapsible "Details" sections not showing CVE information properly
  * Corrected theme vulnerability update links to point to themes.php instead of plugins.php
  * Improved details logic to show CVE links even when no other references are available
  * Enhanced vulnerability display with better error handling and user experience
* IMPROVED: Added a button to allow manual vulnerability scans.
* IMPROVED: Enhanced test interface with visual feedback - Tests now show color-coded highlights to indicate status changes, making it easier to see which tests have improved, declined, or changed. Thanks to user feedback for this improvement!
* IMPROVED: Icons on tests are now easier to see with a quick glance, thank you for the user feedback.
* NEW: 404 Guard. Monitor excessive 404 errors and block abusive visitors automatically. Finetune settings as needed in our new settings page - "Firewall" -> "404 Guard"!
* NEW: WooCommerce Protection tab in Firewall – dedicated security settings for WooCommerce stores!
* NEW: Rate limiting for WooCommerce actions – limit excessive checkout, add-to-cart.
* NEW: Coupon Code Brute Force Protection – automatically blocks IPs that attempt too many invalid coupon codes with temporary bans.
* FIX: "Update Database" button was not working correctly - Thank you Wan.
* FIX: Child theme vulnerability detection bug - Fixed incorrect logic that was causing child themes to be flagged as vulnerable when comparing child theme version against parent theme vulnerability threshold. Thank you Ivan.
* FIX: Bug with deleting individual detected files in core scanner (Delete All worked fine). Thank you Wan.
* FIX: "Update Database" button - Thank you Wan.
* FIX: Child theme vulnerability detection bug - Fixed incorrect logic that was causing child themes to be flagged as vulnerable when comparing child theme version against parent theme vulnerability threshold. Thank you Ivan.
* FIX: Bug with deleting individual detected files in core scanner (Delete All worked fine). Thank you Wan.
* FIX: Prevent Banned IPs from Accessing the Site setting now works correctly - when set to OFF, banned IPs can visit the site but are blocked from login pages. Thank you Sascha.
* IMPROVED: Brute force protection for the lost password feature!
* IMPROVED: Loading time - Improved internal logic for loading faster.


= 5.240 =
* *Enhanced Vulnerability Scanner Performance*: Implemented memory-efficient scanning to prevent memory exhaustion on large vulnerability databases. The scanner now processes vulnerability data line-by-line and includes automatic memory monitoring to ensure stable operation.
* *New Ignore Feature*: Added ability to ignore specific plugins and themes from vulnerability scanning. Users can now exclude trusted plugins/themes from security alerts via the settings page.
* *Child Theme Vulnerability Detection*: Enhanced theme vulnerability scanning to properly detect when child themes inherit vulnerabilities from their parent themes.
* *Better Error Handling*: Enhanced error handling and recovery for vulnerability scanning operations.
* IMPROVED: Better handling of firewall rules.
* Added: ModularDS IPs are now always whitelisted.
* Improved: File viewer now breaks long lines - Easier to view content.

= 5.239 = 
* FIX: "Details" button in events log would sometimes expand details and also reload the entire page.
* Improved visuals on the overview page for the firewall events.
* Continued improving the visual layout of the plugin.
* Improvements to visitor logging - better filtering of unecessary requests.

= 5.238 =
* 2025-06-05
* NEW: Improved WooCommerce protection - Block countries from logging in or registering via WooCommerce. 
* NEW: Added method to activate license in the main sidebar if license has not been activated yet.
* IMPROVED: Updated the "Fixes" page with the new interface.
* IMPROVED: Visitor Log page fixed minor issues and implemented the new interface.

= 5.237 =
* 2025-06-01
* NEW: The emails from the Scheduled Scanner now contain details if any changes have been detected in the scheduled scans. No need to log in to see details.
* Removed HelpScout beacon - we are transferring to a new support ticket system.
* IMPROVED: Further improving the visual interface we introduced recently.
* Improving the code, making the plugin load faster in the admin interface.


= 5.236 =
* 2025-05-28
* Major improvements to the interface. More changes to come, but already a much nicer interface with more features and polish.
* Many minor improvements under the hood. Reworking the interface cleaned up underlying code.

= 5.235 =
* 2025-05-13
* NEW: Introducing the "Overview" Tab - A comprehensive dashboard providing a clear and concise summary of your website's security status.
* IMPROVED: Revamped User Interface - Experience a modern and visually appealing interface, departing from the traditional WordPress aesthetic with enhanced color and design elements. This is an ongoing effort that will introduce more changes over the next releases.
* UPDATED: Added Fastpixel IPs to the default whitelist for enhanced compatibility and reduced false positives.

= 5.234 =
* 2025-05-10
* Enhanced WordPress Multisite compatibility and integration - thank you for reporting issues.
* Resolved translation-related PHP warnings by updating language file loading to follow WordPress standards.
* Introduced "What's New" feature for Pro users to view changelog directly within the plugin.
* Added welcome message for new plugin installations to improve user onboarding.

= 5.233 =
* 2025-04-07
* Fixed problem with custom login for some users, sorry for the hassle.

= 5.232 =
* 2025-04-03
* Rewritten activation code, removed race conditions that created issues for some users.
* Improved visitor logging interface.

= 5.231 =
* 2025-04-03
* Enhanced admin user monitoring with improved detection of direct database admin creation, added detailed email notifications for suspicious admin user creation, and improved logging of admin user creation events; thank you Jean.
* Fixed translation loading timing issue in rename-login module to comply with WordPress 6.7.0 standards 
* Fix: Moved translation loading in Cloud Firewall module to init hook to comply with WordPress 6.7.0 requirements.
* Enhancement: Improved whitelabel functionality with WordPress media uploader integration for plugin and menu icons.
* Enhancement: Added image preview functionality for whitelabel icons.
* Enhancement: Improved user experience in whitelabel settings with clear buttons for icon fields.

= 5.230 =
* 2025-03-31
* Enhanced compatibility with Trafft Booking System - A workaround has been implemented to ensure seamless integration with our plugin, even when the Trafft Booking System is active.
 
= 5.229 =
* 2025-03-20
* Added checks for the unecessary themes to include theme from 2025, thank you Troy.
* Added fix for incorrect CSP header values in the auto-fixer. Saving a header value containing a URL could lead to incorrect values being saved. Thank you Maxime.
* Cleaning up temporary files - Thank you Heath.
* Fixed: Scheduled Scanner now correctly respects the "Send an email only when test results change" setting, preventing daily emails when no changes are detected. Thank you Jean.
* Fixed: Added a database update routine to fix missing URL column in visitor log table that was causing errors. Thank you Jean for reporting this issue.
* Fixed: WordPress version detection issue, thanks to Tom for pointing it out.
* Change: Renamed the license file from `license.txt` to `license_key.txt` for better clarity and consistency, this prevents overlap with tests trying to remove the file.

= 5.228 =
* 2025-02-03
* Fix: Resolved PHP warnings in Events Logger related to undefined 'notify_new_admin' array key

= 5.227 =
* 2025-01-29
* Security: Improved backup file encryption to prevent unauthorized access to sensitive configuration files
* Security: Added file integrity verification to backup/restore functionality
* Enhancement: Improved visitor log interface:
  * Added refresh button for manual data updates
  * Added pagination controls at both top and bottom of the table
  * Improved error handling and display
  * Enhanced data loading with server-side processing
* Fix: Resolved PHP warnings in Events Logger related to undefined 'notify_new_admin' array key
* Enhancement: Added default settings for Events Logger notifications to prevent PHP notices

= 5.226 =
* 2025-01-27
* New: Added notification system for new administrator user creation, including direct database insertions - https://securityninja.productlift.dev/p/notify-when-a-new-admin-user-has-been-created-uLRYcA
* New: Added periodic checks for unauthorized admin user creation through database manipulation

= 5.225 =
* 2025-01-27
* Updated: Freemius SDK to 2.11.0
* Updated language files.

= 5.224 =
* 2025-01-23
* Improved: Enhanced UI with better color contrast in the test interface
* Improved: Vulnerability scanner now shows how many vulnerabilities are in the list.
* Enhanced: Improved Import/Export functionality:
  * Fixed issues with firewall settings not importing correctly
  * Added proper handling of boolean and array settings
  * Improved validation and sanitization of imported data
  * Added detailed import logs and success notifications
  * Fixed scheduler settings import
  * Preserved critical existing settings during import
* Enhanced: Completely revamped 2FA setup flow:
  * Improved session handling for more reliable authentication
  * Better handling of grace period skipping
  * UX: Added automatic focus on 2FA code input field
  * Added proper login redirect handling
  * Fixed issues with session persistence
  * Improved error handling and user feedback
* Fixed: Resolved compatibility issues with Nextend Social Login in 2FA module
* Security: Strengthened session management in 2FA authentication process
* Code refactoring for better maintainability and WordPress coding standards compliance

= 5.223 =
* 2025-01-17
* Fix: Added missing URL column to visitor log database table to properly track request URLs.
* Fix: Cleaning up the code for the 2FA module console log messages only showing for error events.
* Fix: Create missing database tables when installing the plugin.
* Added UptimeRobot IPs to the whitelist.
* Updated: Freemius SDK to 2.10.1 and phpseclib to 2.0.48.

= 5.222 =
* 2024-12-12
* Fix: Resolved rare PHP warnings related to undefined webhook settings in Events Logger.
* New: Users IPs automatically added to the whitelist when activating the firewall. IPs are no longer added to the whitelist by successful login.
* Updated Freemius SDK to 2.10.1

= 5.221 =
* 2024-11-10
* Fixed issue with new QR code shown for some users already having 2FA enabled when trying to log in.
* Fix issue with events logger not sending HTML emails.
* Enhanced email reports in the events logger to look better.
* Improved translation strings in events logger module.

= 5.220 =
* Fixed issue with the topbar not using the correct White label icon and title for some users.
* Further improvements to the translation strings.
* Enhancement: White label: Now having an empty icon URL will not show the icon in the topbar.
* Added more debug logging to the scheduled scanner.
* Added missing Bulgarian translation.* Enhancement: 2FA code input field not focusing automatically.
* Fix - visitor log table was not created on some systems.
* Tested up to WordPress 6.7.

= 5.219 =
* Improved translations in the plugin.
* PRO: New Language Support!
We've expanded the language support in Security Ninja Pro to better serve our global community. With this update, we've added full translations for 16 languages, allowing users to navigate the plugin more comfortably in their native language. Here are the newly supported languages: Danish (da_DK), German (de_DE), Spanish (es_ES), Finnish (fi_FI), French (fr_FR), Croatian (hr_HR), Icelandic (is_IS), Italian (it_IT), Korean (ko_KR), Norwegian Bokmål (nb_NO), Dutch (nl_NL), Portuguese (pt_PT), Russian (ru_RU), Swedish (sv_SE), Chinese (Simplified) (zh_CN) and Hindi (hi_IN).

This update makes Security Ninja more accessible to millions of users worldwide, with full support for major languages in Europe, Asia, and beyond.


= 5.218 =
* Added headers to prevent caching on Cloudflare and other proxies.
* Fixed compatibility issue with Fluent Bookings plugin. Thank you to everyone reporting this issue.
* Added Divi Dashboard to the cloud firewall whitelist. Thank you James.
* Trimmed 2FA module code.
* Trimmed file viewer module code.
* Trimmed unused code in the test descriptions and updated the strings for translation.
* Translation updates.

= 5.217 =
* Fix: Events logger emails had a bug where the content generated list did not look correctly in the email.
* Added .inc, .xml, .json, .md, .yml, .yaml, .sql and .ini as allowed file extensions for the file viewer.

= 5.216 =
* Refactored the code for enabling the firewall.
* Fix: Resolved an issue with the scheduled scanner not running properly.
* Further improvements to the cloud firewall.
* Added WPCompress to the cloud firewall whitelist.
* When disabling the firewall, 2FA is also disabled and all user 2fa secrets are deleted.
* Improved translation strings, increased the amount of the plugin being translated.

= 5.215 =
* Fix: Resolved an issue with error messages showing up regarding \wf_sn_el_modules missing. Thank you everyone reporting this issue.
* File Viewer: Added support for viewing `debug.log` and `error_log` files, allowing users to access important debugging information.
* File Viewer: Fixed a PHP notice about a missing timestamp, $timestamp. Thank you Tom for reporting this issue.
* Cloud Firewall: Added a filter `secnin_show_woocommerce_login_message` to allow customization of the WooCommerce login message display. https://wpsecurityninja.com/docs/filters-hooks/secnin_show_woocommerce_login_message/

= 5.214 =
* Fixed issues with 2FA setup not working for some users.
* Fix: Missing translations in the 2FA module.
* Improved malware scanner better interface and improvements to the backend.
* Started work reintroducing the database malwarescanner and preparing for a beta release.
* Improvement to the license activation process.

= 5.213 =
* Fixed an issue where license activation could lead to a flood of email verification requests. This occurred when users agreed to activate their license but didn't complete the email confirmation process. Previously, users were allowed to remain anonymous, but this caused unintended complications.
* Fixed an issue in the malware scanner that occasionally caused the scan to stop unexpectedly.

= 5.212 =  
* Resolved issues causing unexpected errors for some users.  
* Improved MainWP integration for smoother functionality.  

= 5.211 =
* Code cleanup and refactoring.
* Removed anoymous feature when signing up.
* Fix: Resolved an issue with the events logger not sending emails in some cases.
* Improved Scheduled Scanner to load results via AJAX, reducing database load and request times.
* Fix: Resolved issues loading the Core Scanner results window.

= 5.210 =
* Feature: Core Scanner module now available to all users. Keeping your core files safe is important.
* Enhancement: Improved file restoration process within the Core Scanner for more reliable recovery.
* UI: Updated dialog messages for better user understanding in file operations.
* Fix: Resolved an issue with the white label feature loading properly for some users with unlimited licenses.
* Fix: Resolved an issue with inline CSS added in admin incorrectly.
* Security: Strengthened nonce verification in AJAX calls for Core Scanner actions.
* New: Automatic license activation for agencies: Automatically activates licenses on sites without an existing activation. Makes it easy to distribute the plugin to multiple sites.
* Security: Enhanced escaping in Core Scanner's file listing function.
* Improvement: Updated Core Scanner to use WordPress's built-in hashing function for better security.
* Code: Improved PHPDoc comments in Core Scanner module for better code documentation.

= 5.209 =
* Improved 2FA setup and verification process.
* Fix: Resolved an issue where the 2FA setup wizard was not displayed for some users.
* Updated IP2Location package to 9.7.3 to fix an issue with country detection.
* Fix: Issue with country detection in the visitor log module - wrong flag used in some cases.
* Enhanced send_webhook_event function for better reliability and security.
* Enhanced: Vulnerability scanner now displays when each vulnerability list was last updated.
* Fix: Resolved an issue with saving country settings on some sites.
* Improved 'PHP Headers' security test for better accuracy and reliability. Thank you Stefan.
* Enhanced error handling and sensitive information detection in server responses.

= 5.208 =
* General: Added and updated PHPDoc comments for better code documentation and consistency.
* General: Refactored white labeling functionality for improved performance and maintainability.
* General: Optimized code organization, readability, and adherence to WordPress coding standards.
* General: Enhanced internationalization and output escaping for user-facing strings.
* General: Added a mechanism to prevent error pages from being cached by defining the DONOTCACHEPAGE constant. Thank you Björn.
* Security: Strengthened nonce verification in AJAX calls.
* Security: Enhanced SQL injection prevention in visitor log queries.
* Security: Added validation to prevent banning of private or reserved IP addresses.
* Security: Implemented a 5MB file size limit and directory traversal prevention in the File Viewer module.
* Security: Restricted viewable file types to a predefined whitelist.
* 2FA: Improved error handling and logging.
* 2FA: Addressed potential issues in 2FA setup and verification process.
* Core Scanner: Improved input sanitization for file deletion functionality.
* Core Scanner: Enhanced error handling, logging, and security checks.
* Core Scanner: Refined error messages for more useful debugging information.
* File Viewer: Limited file content display to 10,000 lines to prevent excessive memory usage.
* File Viewer: Updated path handling for better security and performance.
* File Viewer: Fixed potential vulnerabilities in file path handling and content rendering.
* Code Quality: Refactored methods to use prepared statements consistently.
* Code Quality: Improved static caching for better performance.
* Code Quality: Implemented proper escaping when outputting dynamic values.
* Code Quality: Added constants for frequently used values.
* UI: Updated warning message and button text in the setup wizard.
* Tested: Confirmed compatibility with WordPress 6.6.2.
* Enhanced security and code quality in secnin-wizard.js

...

Entire changelog can be seen here: <a href="https://wpsecurityninja.com/changelog/" target="_blank">changelog</a>

== Upgrade Notice ==
5.241
Recommended update, major updates and improvements!