[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Successor to CentOS] AlmaLinux OS server construction/migration service

[Successor to CentOS] AlmaLinux OS server construction/migration service

[For WordPress only] Cloud server “Web Speed”

[For WordPress only] Cloud server “Web Speed”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Reservation system development] EDISONE customization development service

[Reservation system development] EDISONE customization development service

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[Global exclusive service] Beyond's MSP in North America and China

[Global exclusive service] Beyond's MSP in North America and China

[YouTube] Beyond official channel “Biyomaru Channel”

[YouTube] Beyond official channel “Biyomaru Channel”

[WordPress] Add a super simple anti-spam measure to your contact form

This is Yamada from the Systems Department.
Today we'll be talking about Wordpress.

WordPress has a form creation plugin called ``Contact Form 7'' that
makes it very easy to create something like a small contact form, but if
you don't do it properly, it can become a springboard for spam.

However, for those who don't know how to prevent spam or
don't want to install too many plugins,
we will introduce some simple methods to prevent spam.

Here it is↓
Figure 1

Use Contact Form 7's "Acceptance Confirmation" tag.
By using this, you will not be able to send unless you check the box before sending, so you
can ``mostly'' block programs that automatically send spam.

 

It's easy to use; when you press the "Confirm consent" button, a dialog like this will appear.
Figure 2
Set any id and class here (you can use it without setting)
and press the "Insert tag" button...

 

A tag for "acceptance confirmation" will be inserted on the form source!
Figure 3

 

So, if you don't check it, you won't be able to press the send button (^^)
Recruitment information_Beyond Co., Ltd._-_2016-05-19_13.22.22
I can't press the send button!

 

However, there is one caveat.
For other required items, an input check will be required, but
if this "acceptance confirmation" is the default, no input check error message will be displayed.

If you are worried that someone will not notice that you forgot to check it,
enter the code below in "Other settings".

acceptance_as_validation: on

 

Now, the input check will be applied to "Confirmation of consent".
Recruitment information_Beyond Co., Ltd._-_2016-05-19_13.23.52

An error message was displayed!

 

Although it cannot completely prevent all spam, you
can expect great results with little effort, so give it a try! !

If you found this article helpful , please give it a like!
0
Loading...
0 votes, average: 0.00 / 10
1,155
X facebook Hatena Bookmark pocket
[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

The person who wrote this article

About the author