Wie Du Referrer Spam über die .htaccess Datei sperrst!

von | Letzte Aktualisierung

Werbung

Wir empfehlen sorgfältig ausgewählte Produkte. Bei einem qualifizierten Kauf über unsere Links erhalten wir eine kleine Provision von unseren Partnern, wie z. B. Amazon. Dies verursacht keine zusätzlichen Kosten für dich, ermöglicht es aber, unsere Arbeit zu unterstützen. Alle mit einem * markierten Links sind Affiliate-Links (Werbung).

Wie ich den Referrer Spam in Google Analytics einigermaßen filtern kann, habe ich HIER schon beschrieben. Da die Lösung nur bedingt taugt und trotzdem immer wieder solche Spam Seiten durch kommen, möchte ich diesmal eine Stufe tiefer ansetzen und die Seiten bereits über die .htaccess blockieren. Um es gleich vorweg zunehmen, es gibt manche Seiten, die trotz einer Sperrung hin und wieder durchkommen. Woran das liegt, kann ich leider nicht sagen. 

Was ist die .htaccess eigentlich?

Mit der kleinen Datei steuert ihr wichtige Funktionen auf eurem Hoster. Da ich das Thema nicht selber noch mal durchkauen möchte und andere sich damit noch besser auskennen, verweise ich auf zwei nützliche andere Artikel.

Folgende Code Zeilen müsst ihr in die .htaccess eintragen

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://.*spamseite-1\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*spamseite-2\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*spamseite-3\.com/ [NC]
RewriteRule ^(.*)$ – [F,L]

Wichtig ist, dass ihr bei der letzten Spamseite, die ihr eintragt, das OR in den eckigen Klammern raus nehmt.

Unsere Wordpress Hosting Empfehlung

Alfahosting
Werbung


Das könnte dich auch interessieren:


13 Gedanken zu „Wie Du Referrer Spam über die .htaccess Datei sperrst!“

  1. Hi Johannes,
    genau das was ich gerade brauche! Hast du eventuelle noch deine momentan aktive .htaccess? Dann könnten wir und das Einfügen der Spamseiten sparen. Mit einem Copy & Paste wäre dann alles fertig :). Also meine jetzt nur den hier angesprochenen Teil der .htaccess…nicht deine komplette.

    Liebe Grüße,
    Marco

  2. Hi Johannes,
    ja das reicht völlig…dann werde ich es mit dieser Lösung probieren. Vielen Dank 🙂

    Liebe Grüße,
    Marco

  3. Hallo,

    anbei eine Liste direkt für htaccess.

    RewriteCond %{HTTP_REFERER} ^http(s)?://.*100dollars-seo\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*4webmasters\.org/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*adf\.ly/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*adtiger\.tk/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*alibestsale\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*best-seo-offer\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*best-seo-software\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*best-seo-solution\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*black-friday\.ga/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*blackhatworth\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*build-a-better-business\.2your\.site/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*buttons-for-website\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*buttons-for-your-website\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*buy-cheap-online\.info/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*boost-my-site\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*copyrightclaims\.org/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*cookie-law-enforcement-ff\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*darodar\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*domination\.ml/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*dregol\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*e-buyeasy\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*econom\.co/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*econombuy-cheap-online/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*event-tracking\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*fast-wordpress-start\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*fix-website-errors\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*free-share-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*free-social-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*free-social-buttons6\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*free-traffic\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*free-video-tool\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*Get-Free-Traffic-Now\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*get-your-social-buttons\.info/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*googlsucks\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*guardlink\.org/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*hulfingtonpost\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*hosting-tracker\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*ilovevitaly\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*info-xxl\.de/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*justprofit\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*keywords-monitoring-success\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*keywords-monitoring-your-success\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*lsex\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*m-google\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*makeprogress\.ga/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*makemoneyonline\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*monetizationking\.net/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*new-look\.for-your\.website/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*pornhub-forum\.ga/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*priceg\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*quirktools\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*rankings-analytics\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*rank-checker\.online/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*ranksonic\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*rusexy\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*santasgift\.ml/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*scripted\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*semalt\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*semaltmedia\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*seo-platform\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*share-buttons\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*simple-share-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*site3\.free-share-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*site4\.free-share-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*smarter-content\.for-your\.website/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*snip\.to/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*socialbuttons\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*social-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*social-buttons-gg\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*social-buttons-hh\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*social-traffic-6\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*social-widget\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*success-seo\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*theguardlan\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*traffic2cash\.org/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*traffic2money\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*trafficgenius\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*trafficmonetizer\.org/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*top1-seo-service\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*webmonetizer\.net/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*website-analyzer\.info/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*web-revenue\.xyz/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*website-stealer\.nufaq\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*website-stealer\.hdmoviecamera\.net/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*website-stealer-warning\.hdmoviecamera\.net/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*www1\.free-social-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*www2\.free-social-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*www4\.free-social-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*www5\.free-social-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*www8\.free-social-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*www9\.free-social-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*www10\.free-social-buttons\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*wordpress-crew\.net/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*wordpresscore\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*youporn-forum\.ga/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*videos-for-your-business\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://.*video–production\.com/ [NC]
    RewriteRule ^(.*) [F,L]

    Danke für den Blogartikel 🙂

    Gruß,
    Jörg

  4. Hi Johannes, danke für deine Hilfe ! Hat mich gerettet! Den Code kann ich doch einfach ganz unten in die .htaccess setzen, oder? VG Jasmina

Kommentare sind geschlossen.