mitchellkrogza/Stop.Google.Analytics.Ghost.Spam.HOWTO
mitchellkrogza/Stop.Google.Analytics.Ghost.Spam.HOWTO has 35 GitHub stars and 8 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-09 12:23 UTC. Last push 2025-02-24.
How to stop Google Analytics "Ghost" Spam using a well curated list of spam referrer domains and web sites. Simple and easy to use with instructions for creating Segments in Google Analytics using our google-exclude files.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalHOW TO Stop Google Analytics "Ghost" Spam
How to stop Google Analytics "Ghost" Spam using a well curated list of spam referrer domains and web sites. Simple and easy to use with visual instructions for creating Segments in Google Analytics using my google-exclude files.
Version: V1.2025.02}
Bad Referrer Count: 7088
- Created by: https://github.com/mitchellkrogza
- Copyright Mitchell Krog [email protected]
If this project helped you out why not?
What is "Ghost" Spam?
Spam in Google Analytics (GA) is becoming a serious issue. Due to a deluge of referral spam from social buttons, adult sites, and many, many other sources, people are starting to become overwhelmed by all the filters they are setting up to manage the useless data they are receiving. Referrer spam produces corrupt analytics data and on many sites a good 70% of what you may be seeing as hits to your sites are actually spam referral traffic.
They are called ghosts because they never access your site. As unusual as it sounds, this type of spam doesn't have any interaction with your site at all. You may wonder how that is possible since one of the main purposes of GA is to track visits to our sites. They do it by using the Measurement Protocol, which allows people to send data directly to Google Analytics' servers. Using this method, and probably randomly generated tracking codes (UA-XXXXX-1) as well, the spammers leave a "visit" with fake data, without even knowing who they are hitting.
Instructions to stop "Ghost" Spam on On Analytics
Follow the simple step by step visual instructions below to add these google-exclude files as segments to your web site.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
When you see what difference this makes for you
The Information Sources
The referrer domains contained in this repository comes from over a year's worth of curation from my Nginx Referrer Spam and Bot Blocker and Apache Referrer Spam and Bot Blocker Projects. These lists are carefully moderated and curated and also constantly updated.
Stop Bad Bot and Bad Referrers from gaining access to your web sites.
- Check Out The Amazing
Contributors
- Nissar Chababy - https://github.com/funilrys/funceble (Excellent script for checking ACTIVE, INACTIVE and EXPIRED Domain Names)
Some other awesome free projects
- https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker
- https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker
- https://github.com/mitchellkrogza/Badd-Boyz-Hosts
- https://github.com/mitchellkrogza/Stop.Google.Analytics.Ghost.Spam.HOWTO
- https://github.com/mitchellkrogza/fail2ban-useful-scripts
- https://github.com/mitchellkrogza/linux-server-administration-scripts
- https://github.com/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration
- https://github.com/mitchellkrogza/Travis-CI-for-Apache-For-Testing-Apache-and-PHP-Configurations
- https://github.com/mitchellkrogza/Fail2Ban-Blacklist-JAIL-for-Repeat-Offenders-with-Perma-Extended-Banning
- https://github.com/funilrys/funceble
- https://github.com/funilrys/dead-hosts
Help Support this Project

Get your web site fixed or cleaned or get help with any Linux security problems.
if you ever need help with implementing this or with any other web site related queries. I can help you secure your site, stop it getting hit by bad bots and referrer spam and implement many security solutions on all distributions of Linux. I am for hire and I support clients worldwide.
Into Photography?
Come drop by and visit me at https://mitchellkrog.com or
Explore related projects
Asabeneh/30-Days-Of-Python
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,423 starsgrafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
77,790 starsredis/redis
For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
77,309 starsapache/superset
Apache Superset is a Data Visualization and Data Exploration Platform
75,455 stars







