What should be done to block spam bots?

I’m glad if it was useful to you :slight_smile: The comment etc. isn’t that important, I try to update it as much as I can.

Sir, this is definitely very useful. However, there are also those coming without referrers. We need to catch them using my method as well. :slight_smile:

Instead of this method, I can suggest the following: it makes more sense to set up Cloudflare and apply a browser challenge to countries like Russia, Ukraine, China, and Iran. I cut 100% of the traffic this way. Rather than finding IPs one by one, it makes more sense to directly block the country range via GeoIP. It is especially good if the site is not international.

Yes boss, so if I have a site where I sell olives, all the countries you listed can be banned.<|user|>

Master, where exactly do we add these codes? And how do we add them when we detect a malicious site? Sometimes two links are seen in the ref. One is the machine name and the other is in the form of a reference.

You need to write this inside the .htaccess file. If you are using nginx, you can convert these codes using a conversion site and add them; it works. If you see a new site when looking at the referrer section in your traffic, write it as a comment about the spam or contact me, and I will make the necessary addition to the code.

Also, the machine name is not needed when filtering; we can

Sir, we are adding it in there, but normally it looks like this.

BEGIN WordPress

RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

I’ve never done it myself, so I gave the codes to a friend and told him to add them before "

END WordPress". He added them but it didn’t work. I wonder if it was added in the wrong place.

[QUOTE="seo sensey, post: 12498, member: 705