{"id":300344,"date":"2026-05-16T09:54:51","date_gmt":"2026-05-16T09:54:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/security-with-ip-blocking-system\/"},"modified":"2026-09-13T10:12:06","modified_gmt":"2026-09-13T10:12:06","slug":"lunexia-htaccess-shield","status":"publish","type":"plugin","link":"https:\/\/uk.wordpress.org\/plugins\/lunexia-htaccess-shield\/","author":23480853,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"3.2.2","stable_tag":"3.2.2","tested":"7.0.5","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Lunexia Security \u2013 .htaccess Shield, Firewall, Two Factor Authentication (2FA) & Malware Protection","header_author":"Lunexia","header_description":"Professional website security hardening with IP blocking system by automatically applying common .htaccess security rules safely.","assets_banners_color":"051123","last_updated":"2026-09-13 10:12:06","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/lunexia-htaccess-shield\/","header_author_uri":"https:\/\/lunexiait.com","rating":5,"author_block_rating":0,"active_installs":0,"downloads":691,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"lunexiait","date":"2026-05-19 06:34:51","revision":3536700},"1.1.0":{"tag":"1.1.0","author":"lunexiait","date":"2026-05-19 06:34:51","revision":3536700},"1.1.1":{"tag":"1.1.1","author":"lunexiait","date":"2026-05-19 06:34:51","revision":3536700},"1.2.1":{"tag":"1.2.1","author":"lunexiait","date":"2026-05-19 10:22:22","revision":3537080},"2.0.0":{"tag":"2.0.0","author":"lunexiait","date":"2026-05-19 10:22:22","revision":3537080},"3.0.0":{"tag":"3.0.0","author":"lunexiait","date":"2026-05-20 12:02:04","revision":3539166},"3.1.0":{"tag":"3.1.0","author":"lunexiait","date":"2026-05-24 11:33:32","revision":3546172},"3.1.1":{"tag":"3.1.1","author":"lunexiait","date":"2026-05-24 11:42:37","revision":3546193},"3.2.1":{"tag":"3.2.1","author":"lunexiait","date":"2026-09-13 09:58:38","revision":3693505},"3.2.2":{"tag":"3.2.2","author":"lunexiait","date":"2026-09-13 10:12:06","revision":3693519}},"upgrade_notice":{"3.2.2":"<p>Upgrade to 3.2.2 for improved cryptographic token verification, Lifetime license persistence, and staging domain normalization.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":2},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3693517,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3693517,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3693517,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3693517,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.1.0","1.1.1","1.2.1","2.0.0","3.0.0","3.1.0","3.1.1","3.2.1","3.2.2"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Main Security Dashboard showing protection score, active security modules, and status metrics.","2":"Rules Management Interface with one-click toggles and backup\/restore controls.","3":"Two-Factor Authentication (2FA) and Login Security configuration.","4":"Malware Scanner, Threat Findings table, and Quarantine Manager.","5":"Live Traffic Surveillance and IP Blocking logs."}},"plugin_section":[262246],"plugin_tags":[1174,602,1184,600,9217],"plugin_category":[54],"plugin_contributors":[263133],"plugin_business_model":[],"class_list":["post-300344","plugin","type-plugin","status-publish","hentry","plugin_section-dashboard-widgets","plugin_tags-firewall","plugin_tags-login","plugin_tags-malware","plugin_tags-security","plugin_tags-two-factor","plugin_category-security-and-spam-protection","plugin_contributors-lunexiait","plugin_committers-lunexiait"],"banners":{"banner":"https:\/\/ps.w.org\/lunexia-htaccess-shield\/assets\/banner-772x250.png?rev=3693517","banner_2x":"https:\/\/ps.w.org\/lunexia-htaccess-shield\/assets\/banner-1544x500.png?rev=3693517","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/lunexia-htaccess-shield\/assets\/icon-128x128.png?rev=3693517","icon_2x":"https:\/\/ps.w.org\/lunexia-htaccess-shield\/assets\/icon-256x256.png?rev=3693517","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Lunexia Security &amp; .htaccess Shield<\/strong> is an all-in-one WordPress security suite engineered to defend your website against attacks, malicious bots, unauthorized login attempts, and malware infections. Combining proven <strong>.htaccess server hardening<\/strong>, an intelligent <strong>Web Application Firewall (WAF)<\/strong>, <strong>Two-Factor Authentication (2FA \/ OTP login protection)<\/strong>, <strong>login brute force defense<\/strong>, and a deep <strong>malware scanner with 1-click quarantine<\/strong>, Lunexia provides comprehensive website security that is ultra-lightweight, safe, and fully compatible with WordPress 7.0 Modern admin and PHP 8+.<\/p>\n\n<p>Whether you need rock-solid login protection, two-factor authentication, malware removal, or instant .htaccess security headers, Lunexia delivers enterprise-grade protection with zero bloat.<\/p>\n\n<h3>\ud83d\udee1\ufe0f Key Security Features:<\/h3>\n\n<ul>\n<li><strong>Two-Factor Authentication (2FA) &amp; OTP Login Security<\/strong>: Add time-based one-time password (OTP) verification for Administrators, Editors, and custom roles. Protect your login forms from credential stuffing and unauthorized access.<\/li>\n<li><strong>Login Brute Force Protection<\/strong>: Detect, limit, and automatically block malicious IP addresses attempting brute force login attacks.<\/li>\n<li><strong>Web Application Firewall (WAF)<\/strong>: Real-time inspection for SQL Injection (SQLi), Cross-Site Scripting (XSS), Local File Inclusion (LFI), and Remote Code Execution (RCE) attempts without breaking page builders like Elementor or Gutenberg.<\/li>\n<li><strong>Malware Scanner &amp; Threat Detection<\/strong>: Deep file integrity and heuristic scanner to detect webshells, backdoors, obfuscated base64 code, eval injections, and unauthorized core file modifications.<\/li>\n<li><strong>1-Click Quarantine &amp; Cleanup<\/strong>: Instantly isolate infected files into a safe, non-executable quarantine vault with full 1-click restoration and permanent deletion controls.<\/li>\n<li><strong>Automatic .htaccess Hardening<\/strong>: Safely apply proven Apache\/LiteSpeed security rules with automatic timestamped backups before every change.<\/li>\n<li><strong>Admin Approval Workflow<\/strong>: Require administrator approval for newly registered administrative and editor accounts before they can log in.<\/li>\n<li><strong>Backend Access Control<\/strong>: Restrict access to <code>wp-admin<\/code> and <code>wp-login.php<\/code> exclusively to trusted, whitelisted IP addresses.<\/li>\n<li><strong>Security Headers Protection<\/strong>: Automatically enforce Content Security Policy (CSP), HTTP Strict Transport Security (HSTS), X-Frame-Options, and Referrer-Policy.<\/li>\n<li><strong>Live Traffic Monitor &amp; IP Reputation<\/strong>: Real-time traffic surveillance tracking visitor requests, malicious bots, automated crawlers, and blocked threat origins.<\/li>\n<li><strong>Modern WordPress 7.0 Ready<\/strong>: Centered layout, high-DPI retina interface, and modern glassmorphic dashboard widgets.<\/li>\n<\/ul>\n\n<h3>\ud83d\udd12 Security Rules Included:<\/h3>\n\n<ul>\n<li>Disable directory browsing and file listing (<code>Options -Indexes<\/code>)<\/li>\n<li>Protect <code>wp-config.php<\/code> database credentials and <code>.htaccess<\/code> configuration files<\/li>\n<li>Block direct web access to sensitive files (<code>.bak<\/code>, <code>.sql<\/code>, <code>.log<\/code>, <code>.ini<\/code>, <code>.sh<\/code>, <code>.env<\/code>)<\/li>\n<li>Disable XML-RPC (<code>xmlrpc.php<\/code>) to block pingback DDoS and brute force amplifications<\/li>\n<li>Prevent unauthorized PHP script execution in the <code>wp-content\/uploads\/<\/code> directory<\/li>\n<li>Block malicious query string injections, GLOBALS variable overrides, and script tags<\/li>\n<li>Block author enumeration attacks (<code>?author=1<\/code>) to prevent username discovery<\/li>\n<li>Enforce essential HTTP security headers (XSS Protection, No-Sniff, HSTS, Frame Guard)<\/li>\n<\/ul>\n\n<h3>\u26a1 Safe, Non-Destructive &amp; Reliable:<\/h3>\n\n<ul>\n<li>Automatically creates a backup before applying any file modifications.<\/li>\n<li>Uses native WordPress filesystem APIs for maximum server compatibility.<\/li>\n<li>All generated rules are cleanly encapsulated in custom markers for 1-click restore.<\/li>\n<li>Seamless compatibility with Elementor, Gutenberg, WooCommerce, and caching plugins.<\/li>\n<\/ul>\n\n<h3>External Services<\/h3>\n\n<p>This plugin connects to external services as follows:<\/p>\n\n<p><strong>Lunexia License Authority (api.lunexiait.com)<\/strong>\nThis plugin connects to the Lunexia central license server to validate commercial license authenticity, verify cryptographic Ed25519 tokens, and check domain bindings. This connection is used when activating, validating, or deactivating a license key in the plugin dashboard.<\/p>\n\n<ul>\n<li><strong>Purpose<\/strong>: Validates license authenticity, cryptographic tokens, and domain licensing.<\/li>\n<li><strong>When it's used<\/strong>: When activating, validating, or deactivating an enterprise license.<\/li>\n<li><strong>What data is sent<\/strong>: License key, website URL\/domain, verification nonces, PHP and WordPress version numbers.<\/li>\n<li><strong>Service provider<\/strong>: Lunexia IT (api.lunexiait.com)<\/li>\n<li><strong>Terms of Service<\/strong>: https:\/\/lunexiait.com\/terms\/<\/li>\n<li><strong>Privacy Policy<\/strong>: https:\/\/lunexiait.com\/privacy\/<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>lunexia-htaccess-shield<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory (or search for <strong>Lunexia Security<\/strong> in <strong>Plugins &gt; Add New<\/strong>).<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<li>Navigate to <strong>Lunexia Security<\/strong> in your WordPress admin menu.<\/li>\n<li>Review and toggle your desired security rules and login protection features.<\/li>\n<li>Click <strong>Save &amp; Apply Rules<\/strong> to instantly harden your site.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20does%20the%20two-factor%20authentication%20%282fa%29%20and%20login%20protection%20work%3F\"><h3>How does the Two-Factor Authentication (2FA) and Login Protection work?<\/h3><\/dt>\n<dd><p>Lunexia adds OTP (one-time password) verification during login for selected user roles (such as Administrator and Editor). When enabled, users must enter a secure verification code sent to their registered email address before gaining dashboard access, effectively stopping unauthorized logins even if passwords are leaked.<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20work%20with%20elementor%20and%20gutenberg%3F\"><h3>Does this plugin work with Elementor and Gutenberg?<\/h3><\/dt>\n<dd><p>Yes! Lunexia includes intelligent page builder detection. Firewall inspection automatically accommodates Elementor editor previews, AJAX widget saving, and REST API publishing without false positives or 403 blocks.<\/p><\/dd>\n<dt id=\"how%20does%20the%20malware%20quarantine%20manager%20work%3F\"><h3>How does the Malware Quarantine Manager work?<\/h3><\/dt>\n<dd><p>When the malware scanner detects a suspicious file or backdoor, you can quarantine it with a single click. The file is immediately moved into a secure, isolated quarantine directory with revoked execution permissions (<code>0400<\/code>) and blocked from direct browser access. You can restore the file to its original location or delete it permanently at any time.<\/p><\/dd>\n<dt id=\"is%20this%20plugin%20safe%20for%20my%20server%3F\"><h3>Is this plugin safe for my server?<\/h3><\/dt>\n<dd><p>Yes. Lunexia automatically creates timestamped backups of your <code>.htaccess<\/code> file prior to applying any rule changes. If needed, you can restore your configuration with one click from the plugin dashboard.<\/p><\/dd>\n<dt id=\"does%20this%20replace%20other%20security%20plugins%3F\"><h3>Does this replace other security plugins?<\/h3><\/dt>\n<dd><p>Lunexia can be used as your primary lightweight security shield or alongside complementary tools. Its low memory footprint and server-level rules provide exceptional performance without slowing down your site.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.2.2<\/h4>\n\n<ul>\n<li>Enhanced dual-mode cryptographic token verification supporting both 64-byte Sodium Ed25519 and 32-byte HMAC-SHA256 signatures.<\/li>\n<li>Added staging and local domain normalization (.local, .test, localhost) for seamless local development.<\/li>\n<li>Fixed Lifetime enterprise license status persistence and renewal status indicators.<\/li>\n<li>Polished Midnight Obsidian administrative interface with dynamic cache-busting asset versions.<\/li>\n<\/ul>\n\n<h4>3.2.1<\/h4>\n\n<ul>\n<li>Upgraded license authority client to <code>api.lunexiait.com<\/code> with Ed25519 cryptographic token verification and anti-tampering protection.<\/li>\n<li>Added 1-click malware quarantine, file restoration, and permanent file deletion actions.<\/li>\n<li>Added live Quarantine Manager dashboard table displaying isolated files and file metadata.<\/li>\n<li>Fixed Elementor editor preview canvas and REST publishing false positives in Web Application Firewall (WAF).<\/li>\n<li>Fixed HTTP method restrictions to preserve REST API and Elementor <code>DELETE<\/code> operations.<\/li>\n<li>Added official high-DPI WordPress.org banners (1544x500, 772x250) and square icons (256x256, 128x128).<\/li>\n<li>SEO optimized title, keywords, and description for security, login, two factor, firewall, and malware searches.<\/li>\n<\/ul>\n\n<h4>3.0.0<\/h4>\n\n<ul>\n<li>Redesigned dashboard with four separate protection score widgets and modern admin visuals.<\/li>\n<li>Added premium badges to Firewall, Malware Scan, and Advanced Settings navigation tabs.<\/li>\n<li>Added Security Intelligence and Threat Center dashboards for malware, reputation, and threat intelligence visibility.<\/li>\n<li>Centered plugin layout with an 80% width wrapper for a cleaner WordPress 7.0 admin experience.<\/li>\n<\/ul>","raw_excerpt":"Complete WordPress security, 2FA login protection, WAF firewall, malware scanner, 1-click quarantine, and .htaccess server hardening.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/300344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=300344"}],"author":[{"embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lunexiait"}],"wp:attachment":[{"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=300344"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=300344"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=300344"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=300344"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=300344"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=300344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}