Title: Referer blocking help
Last modified: August 22, 2016

---

# Referer blocking help

 *  Resolved [davidplusworld](https://wordpress.org/support/users/davidplusworld/)
 * (@davidplusworld)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/referer-blocking-help/)
 * Like many other sites, my analytics are plagued with spam referers, semalt, button-
   for-websites and a few others.
 * I tried to block them with the refer blocking tool (typing *semalt.com in the
   referer field, but Google analytics still shows traffic coming from those.
 * Have I missed something?
 * Thanks in advance.
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/referer-blocking-help/#post-5658519)
 * Have a look at this document for information about how this works.
 * [http://docs.wordfence.com/en/I_have_a_referrer/IP_address_blocked_in_advanced_blocking_but_Google_Analytics_says_it_hit_my_site._Why_is_that%3F](http://docs.wordfence.com/en/I_have_a_referrer/IP_address_blocked_in_advanced_blocking_but_Google_Analytics_says_it_hit_my_site._Why_is_that%3F)
 * The short version is, they are hitting GA and not your site.
 * tim
 *  Thread Starter [davidplusworld](https://wordpress.org/support/users/davidplusworld/)
 * (@davidplusworld)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/referer-blocking-help/#post-5658520)
 * Thanks.
    I see. However, looking for infos about that, there is a fix with a 
   line of code to put in the htaccess file, I did put it for one of those spam 
   referrers, and analytics has started showing 0 visits from that referer and that
   referer only. How come if they’re not hitting my site at all?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Referer blocking help’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [davidplusworld](https://wordpress.org/support/users/davidplusworld/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/referer-blocking-help/#post-5658520)
 * Status: resolved