How to Block Spam Traffic on Website?


#37

Okay, understood!

Now, after I pasted this code in htaccess my whole site got down… :neutral_face:


#38

The OR is a flag, if you put in the end, it will confuse server and will return Error 500. (Mujhe nahi pata kya ho gya) :rofl:


#39

Any good alternative of Filezilla which shows codes properly for mac?


#41

Good question. Notepad sucks in Win. Now I am hearing similar for Mac too.

May be Sublime you can try… or much better, delete .htaccess and create a new one.


#42

Okay, and if I want to block just one site then I have to use the code like this right?

RewriteCond %{HTTP_REFERER} site.com [NC]
RewriteRule .* – [F]


#43

Yes… yes.


#44

If we want to check this code is working or not then we have to check through Analytics only right?


#45

You can test code easily by blocking fb, Twitter domains for a moment and clicking on shared link.


#46

1- sir spam referral traffic se meri site ko kya kya nuksan ho sakta hai agar main inko block na karu toh?

2- meri site par har roz alag alag domain name se spam traffic aa raha hai … jaise – getpy-click.info, seo-services-with-results.com, fashionbirdz.com etc. jise mai daily block kar raha hu. to mai aapse ye puchna chahta hu ki kya aise spam traffic ko turant block kar dena chahiye ya fir next day again in domain name se traffic aaye tab block karna chahiye?


#47

If you are using Cloudflare, please stop using .htaccess for blocking referral spam. Having tons of .htaccess rule will affect site performance badly.

Now, there is a better way to handle this problem.

For example, if you want to block specific domain referer traffic. You can implement this way.

Cloudflare > Firewall

Also see: How to Setup Free Cloudflare CDN for Wordpress (Tutorial)?


#48

mujhse kaun si galti ho rahi hai?


#49

@deepaksahu9191 May be Cloudflare issue that time. Were you able to resolve the problem?


#50

cloudflare se block toh kar diya hai maine … ab ye dekhna hai ki spam traffic band hota hai ya nahi.


#51

cloudflare se block karne ke baad bhi seo-services-with-results.com se spam traffic aa raha hai. :pensive:


#52

Better, you should create exclude rule in Google analytics. Please search once on Google how to do it.


#53

ok sir


#54

If you are hosting your site on a Linux vps, like Vultr, you can set up iptables to block the spam ips(or the ip segments), you can do it using a SSH terminal like PuTTY or a control panel like VPSrobots. Check this post on How to Set up iptables with VPSrobots.


#55

I’m getting traffic from this garbage now as well.


#56

Apparently, so is everyone on earth. :expressionless:


#57

Me too