{"repo":"Stevie-Ray/referrer-spam-blocker","free":true,"listed":false,"github":"https://github.com/Stevie-Ray/referrer-spam-blocker","clone":"git clone https://github.com/Stevie-Ray/referrer-spam-blocker.git","description":"Apache, Nginx, IIS, uWSGI, Varnish, HAProxy & Lighttpd blacklist + Google Analytics segments to prevent referrer spam traffic 🤖","language":"VCL","stars":372,"topics":["referrer-spam","google-analytics","varnish","spam-filtering","referrer-spam-blocker","uwsgi","spam-prevention","apache","google-analitics","haproxy"],"license":"MIT","category":"analytics","readme_excerpt":"Referrer Spam Blocker :robot: Apache, Nginx, IIS, uWSGI, Caddy, Varnish, HAProxy & Lighttpd blacklist + Google Analytics segments to prevent referrer spam traffic - - - - Apache: .htaccess .htaccess is a configuration file for use on web servers running Apache. This file is usually found in the root “public html” folder of your website. The .htaccess file uses two modules to prevent referral spam, mod rewrite and mod setenvif. Decide which method is most suitable with your Apache server configuration. This file is Apache 2.4 ready, where mod authz host got deprecated. Nginx: referral-spam.conf IMPORTANT: You must increase the map hash bucket size to support the large domain list. With referral-spam.conf in /etc/nginx , include it globally from within /etc/nginx/nginx.conf : Add the following to each /etc/nginx/site-available/your-site.conf that needs protection: Performance Note: This configuration uses a performance-optimized approach with hostname matching instead of thousands of regex patterns. Only one regex is evaluated per request to extract the domain from the Referer header, significantly improving NGINX performance compared to traditional regex-based blocking methods. Varnish: .refferal-spam.vcl Add referral-spam.vcl to Varnish 4 default file: default.vcl by adding the following code right underneath your default backend definitions IIS (Internet Information Services): web.config The web.config file is located in the root directory of your Windows Server web applicat","default_branch":null,"files":null,"tree":[],"storefront":"/r/Stevie-Ray","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Stevie-Ray/referrer-spam-blocker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}