How to stop bad bots from visiting your website?

Recently I noticed in Google Analytics a lot of referral to the page https://www.worldofwp.com//h/1486338.html that doesn’t exist on my website. Visiting the page gives a 404 error. Diving deeper into Google Analytics learned me it was all referral spam from a website called autoseoservice.org.

After searching on the Internet I found out it definitely was referral spam. Because it visits a non-existing page, but still gets counted by Google, I wanted it gone! Luckily several specialists offered a very nice solution, that works like a charme.

Add this code to the .htaccess file of your website and this kind of automated referral spam will not get on your website anymore.

You can add as many lines as you need to stop those referrers spam your website. Make sure the last line ends with [NC].

Always backup your .htaccess before changing it!

0 0 vote
Article Rating
Subscribe
Notify of
guest
2 Comments
oldest
newest most voted
Inline Feedbacks
View all comments
Anier
Anier
1 year ago

Donde debo introducir esos códigos? Tengo el mismo problema.

2
0
Would love your thoughts, please comment.x
()
x