I am Getting Spam Refferal Traffic to my site

How can i block spam refferal traffic to my site? I am getting traffic from baidu.com.
shall I contact hosting provider to block the URL?

Shall I add this code to .htaccess file?

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

Baidu is the Chinese internet search engine company. So I think it’s not a spam traffic source.

But the bounce rate is 100% in google analytics

I think yes. It’s important to prevent bad referrer traffic.

1 Like

I don’t think you should block Baidu. It’s a known search engine in China. If the bounce rate is 100%, there could be because the visitor didn’t get the required information from the page.

However, if the referral traffic is massive, then you should consider using the aforementioned code.