Linux 软件免费装
Banner图

SiteGuarding Math Captcha

开发者 sgplugins
更新时间 2026年10月12日 21:29
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

captcha woocommerce contact form 7 antispam math captcha

下载

1.0.0 1.1.0

详情介绍:

SiteGuarding Math Captcha asks visitors to solve a small example such as "7 + ? = 12" before a form is sent. People answer it in a second; most spam bots do not. There are no cookies, no tracking and no third-party captcha service: everything runs on your own site. Where it works Captcha options IP and country rules Statistics Privacy The captcha sets no cookies. When a check fails, the plugin stores the IP address, its country, the form and the time in your database to block repeated attempts and to show statistics. IP addresses are deleted automatically after the number of days you choose (90 by default). A suggested text for your privacy policy is added under Settings > Privacy.

安装:

  1. Install the plugin from the Plugins screen, or upload the plugin folder to /wp-content/plugins/.
  2. Activate it.
  3. Open Settings > Math Captcha and choose the forms to protect. Login, registration, lost password and comment forms are on by default.

屏幕截图:

  • Forms tab: choose where the captcha is shown.
  • Captcha tab with a live preview.
  • IP & GEO tab with the country database.
  • Statistics of failed checks.

升级注意事项:

1.1.0 Adds payment methods without captcha for express payment buttons on the WooCommerce checkout. 1.0.0 First release.

常见问题:

Does it work with page caching?

Yes. Every example works once and expires after the time you set. For forms that are often cached (comments, contact forms) the plugin loads a fresh example as soon as the visitor starts filling the form, and after every AJAX submission.

Can I place the captcha myself in Contact Form 7?

Yes. Add the [sgmathcp your-captcha] tag where you want it. Forms without the tag get the captcha automatically before the submit button. The messages can be changed on the form's Messages tab.

How do I protect my own form?

Put [sgmathcp_captcha] inside the form. If the form sends its data to the same page, add that page to "Protected pages" on the Forms tab and you are done. Otherwise check the answer in your form handler: $check = sgmathcp_verify(); if ( is_wp_error( $check ) ) { // Show $check->get_error_message() and stop. }

What happens with express payment buttons on the WooCommerce checkout?

Express payment buttons such as Apple Pay and Google Pay send the order without the captcha answer, so the checkout captcha refuses those orders. Go to Settings > Math Captcha > Forms and select their payment methods under "Payment methods without captcha". Orders paid with these methods are placed without the question, and the question is hidden while such a method is selected on the checkout. Bots can choose these methods too, so select only methods where the customer confirms the payment in a wallet. Some payment plugins use one method for cards and express buttons (for example Stripe or WooPayments): selecting it also removes the captcha from card payments. Orders that need no payment always need the answer, and IP and country blocks and the limit of wrong answers still apply. Developers can decide per order with the sgmathcp_wc_checkout_skip filter.

My site is behind Cloudflare or a proxy. Which IP address is used?

By default the connection address. When the request comes from a Cloudflare address, the Cloudflare visitor header is used. For your own proxy or load balancer, choose "Behind my own proxy" on the IP & GEO tab and list the proxy addresses.

I blocked my own IP address or country. How do I get back in?

The plugin warns you before this happens and the Block button refuses your own address. If you are locked out anyway, rename the folder wp-content/plugins/siteguarding-math-captcha with FTP or your hosting file manager, log in, rename it back and fix the rules.

I used WP Advanced Math Captcha. Can I keep my settings?

Yes. The Advanced tab offers to import its settings, and Contact Form 7 forms with the old [mathcaptcha] tag keep working once that plugin is deactivated.

Is a math captcha enough against every bot?

No captcha stops everything. A math captcha stops the automated spam most sites receive. For stronger protection combine it with the attempt limit and the IP and country rules.

更新日志:

1.1.0 1.0.0