{"id":367247,"date":"2026-09-15T14:54:43","date_gmt":"2026-09-15T14:54:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/simple-math-site-lock\/"},"modified":"2026-09-15T14:39:12","modified_gmt":"2026-09-15T14:39:12","slug":"mathlock-guard","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/mathlock-guard\/","author":23564068,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.8","stable_tag":"trunk","tested":"7.1","requires":"6.2","requires_php":"8.0","requires_plugins":null,"header_name":"Mathlock Guard","header_author":"Ishani","header_description":"Protects your site with a lightweight math CAPTCHA, requiring visitors to solve a simple question before accessing your content.","assets_banners_color":"eee6da","last_updated":"2026-09-15 14:39:12","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/ishanishrestha\/Mathlock-Guard.git","header_author_uri":"https:\/\/ishanishrestha.com.np","rating":0,"author_block_rating":0,"active_installs":0,"downloads":23,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3697154,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3697154,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3697154,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3697154,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3697154,"resolution":"1","location":"assets","locale":"","width":1920,"height":1080}},"screenshots":[]},"plugin_section":[],"plugin_tags":[1912,166108,362,144425,4248],"plugin_category":[44],"plugin_contributors":[280890],"plugin_business_model":[],"class_list":["post-367247","plugin","type-plugin","status-publish","hentry","plugin_tags-access-control","plugin_tags-bot-protection","plugin_tags-captcha","plugin_tags-math-captcha","plugin_tags-spam-prevention","plugin_category-discussion-and-community","plugin_contributors-ishanishr","plugin_committers-ishanishr"],"banners":{"banner":"https:\/\/ps.w.org\/mathlock-guard\/assets\/banner-772x250.png?rev=3697154","banner_2x":"https:\/\/ps.w.org\/mathlock-guard\/assets\/banner-1544x500.png?rev=3697154","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/mathlock-guard\/assets\/icon-128x128.png?rev=3697154","icon_2x":"https:\/\/ps.w.org\/mathlock-guard\/assets\/icon-256x256.png?rev=3697154","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/mathlock-guard\/assets\/screenshot-1.png?rev=3697154","caption":""}],"raw_content":"<!--section=description-->\n<p>Mathlock Guard protects your site's public-facing content behind a lightweight math verification challenge. Visitors must correctly answer a simple arithmetic question before accessing your pages, providing an accessible, low-friction alternative to traditional CAPTCHA systems. Site administrators and the login page remain fully accessible at all times, ensuring uninterrupted site management, while all other visitors, including logged-in users such as editors, authors, and subscribers, are required to pass the verification screen.<\/p>\n\n<h3>Demo<\/h3>\n\n<p>Try Mathlock Guard on the author's website: https:\/\/ishanishrestha.com.np<\/p>\n\n<p>Features include:<\/p>\n\n<ul>\n<li>Random math challenges<\/li>\n<li>Administrator bypass<\/li>\n<li>Admin dashboard and login page exclusions<\/li>\n<li>Nonce verification for form submissions<\/li>\n<li>Server-side challenge storage<\/li>\n<li>Temporary unlock functionality<\/li>\n<li>Separate CSS and template files<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>mathlock-guard<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the WordPress Plugins menu.<\/li>\n<li>Visit the website to test the math lock.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20long%20does%20the%20website%20remain%20unlocked%3F\"><h3>How long does the website remain unlocked?<\/h3><\/dt>\n<dd><p>The website remains unlocked for 1 minute after the correct answer is submitted.<\/p><\/dd>\n<dt id=\"does%20the%20lock%20affect%20administrators%3F\"><h3>Does the lock affect administrators?<\/h3><\/dt>\n<dd><p>No. Users with the <code>manage_options<\/code> capability can bypass the math lock.<\/p><\/dd>\n<dt id=\"does%20the%20lock%20affect%20the%20wordpress%20dashboard%3F\"><h3>Does the lock affect the WordPress dashboard?<\/h3><\/dt>\n<dd><p>No. The WordPress admin area and login page are excluded from the lock.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>Version 1.8<\/h4>\n\n<ul>\n<li>Added translation support with a text domain for localization.<\/li>\n<li>Improved compatibility with WordPress localization tools.<\/li>\n<\/ul>\n\n<h4>Version 1.7<\/h4>\n\n<ul>\n<li>Changed the unlock duration to 1 minute.<\/li>\n<li>Updated the unlock cookie configuration.<\/li>\n<\/ul>\n\n<h4>Version 1.6<\/h4>\n\n<ul>\n<li>Added support for a separate CSS stylesheet.<\/li>\n<li>Moved the lock page HTML into a separate template file.<\/li>\n<\/ul>\n\n<h4>Version 1.5<\/h4>\n\n<ul>\n<li>Added a signed cookie to remember successfully unlocked visitors.<\/li>\n<li>Added automatic redirection after a correct answer.<\/li>\n<\/ul>\n\n<h4>Version 1.4<\/h4>\n\n<ul>\n<li>Added server-side math answer storage using WordPress transients.<\/li>\n<li>Added unique challenge IDs for each math question.<\/li>\n<li>Removed reliance on hidden form fields for answer validation.<\/li>\n<\/ul>\n\n<h4>Version 1.3<\/h4>\n\n<ul>\n<li>Added nonce protection and verification for form submissions.<\/li>\n<li>Added input sanitization for submitted form data.<\/li>\n<\/ul>\n\n<h4>Version 1.2<\/h4>\n\n<ul>\n<li>Added an administrator bypass using the <code>manage_options<\/code> capability.<\/li>\n<li>Excluded the admin dashboard and login page from the mathlock.<\/li>\n<\/ul>\n\n<h4>Version 1.1<\/h4>\n\n<ul>\n<li>Improved form handling and answer validation.<\/li>\n<li>Added incorrect-answer error messages.<\/li>\n<\/ul>\n\n<h4>Version 1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<li>Added a random math challenge to restrict website access.<\/li>\n<li>Added custom lock page functionality.<\/li>\n<li>Added direct-access protection.<\/li>\n<\/ul>","raw_excerpt":"Protects your site with a lightweight math CAPTCHA, requiring visitors to solve a simple question before accessing your content.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/367247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=367247"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ishanishr"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=367247"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=367247"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=367247"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=367247"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=367247"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=367247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}