Mathlock Guard

설명

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.

Demo

Try Mathlock Guard on the author’s website: https://ishanishrestha.com.np

Features include:

  • Random math challenges
  • Administrator bypass
  • Admin dashboard and login page exclusions
  • Nonce verification for form submissions
  • Server-side challenge storage
  • Temporary unlock functionality
  • Separate CSS and template files

스크린샷

설치

  1. Upload the mathlock-guard folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the WordPress Plugins menu.
  3. Visit the website to test the math lock.

FAQ

How long does the website remain unlocked?

The website remains unlocked for 1 minute after the correct answer is submitted.

Does the lock affect administrators?

No. Users with the manage_options capability can bypass the math lock.

Does the lock affect the WordPress dashboard?

No. The WordPress admin area and login page are excluded from the lock.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Mathlock Guard”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Mathlock Guard”(이)가 4 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Mathlock Guard”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

Version 1.9

  • Required PHP reduced to 7.4.

Version 1.8

  • Added translation support with a text domain for localization.
  • Improved compatibility with WordPress localization tools.

Version 1.7

  • Changed the unlock duration to 1 minute.
  • Updated the unlock cookie configuration.

Version 1.6

  • Added support for a separate CSS stylesheet.
  • Moved the lock page HTML into a separate template file.

Version 1.5

  • Added a signed cookie to remember successfully unlocked visitors.
  • Added automatic redirection after a correct answer.

Version 1.4

  • Added server-side math answer storage using WordPress transients.
  • Added unique challenge IDs for each math question.
  • Removed reliance on hidden form fields for answer validation.

Version 1.3

  • Added nonce protection and verification for form submissions.
  • Added input sanitization for submitted form data.

Version 1.2

  • Added an administrator bypass using the manage_options capability.
  • Excluded the admin dashboard and login page from the mathlock.

Version 1.1

  • Improved form handling and answer validation.
  • Added incorrect-answer error messages.

Version 1.0

  • Initial release.
  • Added a random math challenge to restrict website access.
  • Added custom lock page functionality.
  • Added direct-access protection.