Best Way To Stop Comment Spam on Wordpress Without Plugins

Best Way To Stop Comment Spam on WordPress Without Plugins...

1025 views

Are you tired of comment spams? No plugins seem to work as good as you want? You’re like me. Before discovering the best way to stop comment spam on WordPress, I had tried a lot of Akismet alternatives, but nothing could satisfy me.

the best way to stop comment spam on wordpress

Why Akismet or any anti-spam plugin is not the best way to stop comment spam on WordPress?

Have you ever opened the spam comment section, and see some not-spam-comments?

Sometimes Akismet treats to my readers’ comments as spam. I also try another anti-spam plugin that uses honeypot technology, which is considered the best way to stop comment spam on WordPress (also the simplest way), but it still happened.

Besides, installing any plugins will surely increase your request numbers and slow down your website. Someone suggested to me that the best way to stop comment spam on WordPress is… to use no plugin at all. They made any comments must be approved by an admin, that’s a good idea if your blog is small, imagine you have thousands of comments to approve!

So what is the best way to stop comment spam on WordPress without plugins?

To find the best solution, I asked the question, “Why are there so many comment spams? Why people made this?”

what is the best way best way to stop comment spam on wordpress without plugins?

Look at a normal comment form, and any spam comments, you will easily find the answer. They are backlinks. When a spam comment is made on your site, their purpose is to put links on the comment content, or in the URL, and hope that they will drive traffic to their sites.

That made me think of an idea. How about treating any comments with URLs as spam! That’s good, but what if a reader wants to share a URL? Like an image or something? So I found the best way to stop comment spam on WordPress: Treat any comments that fill the URL as spam.

But how about normal readers want to fill their URL? No. I won’t let them do it by hiding it. I think it’s better to hide the URL because it’s more convenient for the readers. I don’t know about you, but 90% of my readers don’t have a website, so why I need that URL input?

My best way to stop comment spam on WordPress without a plugin: Just a few lines of codes.

First, I will use CSS to hide the URL input area in the comment form. It depends on the theme, you can right-click at the comment form, then inspect the element to find the class we need.

.comment-form-url { display:none!important;}

Put the code in your style.css, it will hide the URL input area from normal users. So if a comment has that area filled, it must be spam. Now we need a code to detect that kind of comment and automatically put them to the spam folder.

function susu_check_honeypot( $approved ) {
    return empty( $_POST['url'] ) ? $approved : 'spam';
}
add_filter( 'pre_comment_approved', 'susu_check_honeypot' );

Put this code in functions.php, it will turn the URL input area in comment form into a honeypot. I believe 100% comment bots will surely fill this area because it’s their purpose. That’s why I believe this honeypot is the best way to stop comment spam on WordPress.

Now you know my best way to stop comment spam on WordPress. What’s yours? Just comment!

TREASURE CHEST

!!!



You can wait for to get the hidden content, or just share to see it now. Sharing is the key to succeed!

UNLOCK NOW!

fususu, thay đổi bản thân, cải thiện trí nhớ, cách học tiếng anh hiệu quả, câu nói hay, châm ngôn hay, mẹo hay, phát triển bản thân

Suy cho cùng, kết quả cuộc đời bạn là do thói quen mỗi ngày, và những điều bạn biết sẽ chỉ thực sự hữu ích nếu bạn có thể biến chúng thành thói quen. Trải qua nhiều năm nghiên cứu và không biết bao lần “thay đổi chỉ được mấy hôm”, tôi đã đúc rút những kinh nghiệm xương máu trong cuốn sách và khóa học Thay Thói Quen Đổi Cuộc Đời, cũng như sổ tay Người Thành Công.

Bộ sách và quà tặng độc đáo này không chỉ giúp bạn lấy lại động lực cảm hứng, vượt thoát trì hoãn, tạo dựng bất cứ thói quen nào bạn muốn, mà còn giúp xóa bỏ những thói quen xấu đeo bám dai dẳng. Thứ 2, 3, 4, 5, 6, 7, CN, làm gì có thứ nào là “thứ mai”? Trước khi quá muộn, trước khi căn bệnh “để mai làm” tái phát, hãy tìm hiểu thêm hoặc đọc thử ngay bạn nhé!

Have a good day!
Fususu wrote 26/10/2019. Updated 09/04/2020.


P.s. To motivate me, you can google this keyword best way to stop comment spam on wordpress, find my blog there then comment the position. Thank you so much!

Don't hesitate to leave a comment, I'll reply in... 86400s!


Leave a Reply

Your email address will not be published. Required fields are marked *