Support » Plugin: Wordfence Security - Firewall & Malware Scan » Import list of spam referrers as block rules

  • Resolved progonkpa

    (@progonkpa)


    I have a blacklist with spam referrer domains.

    I wanted to import them but I see no option. I was thinking about manually editing an import text file but the import mechanism in WF doesn’t allow it.

    Now I jammed all the domains in 1 block rule separated by ‘, ‘ e.g. 1.com, 2.com,…

    Not sure if that will work though.

    Any advice?

    • This topic was modified 4 months, 2 weeks ago by progonkpa.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @progonkpa and thanks for reaching out to us!

    How to block a referer (or referring website):
    This feature lets you block traffic arriving from any individual website. Why would you want to do this? Because many spammers visit your site claiming they arrived from their own website, when in fact they didn’t. They’re sending you a fake “referer” header which they’re hoping will appear in your logs so that you might click on them. Also, if you show referrers anywhere on your public-facing site, this will give the spammers’ links more visibility and more clicks. So this feature gives you a way to block those bad referrers. Here’s how:

    Let’s say there’s a website called http://www.example.com that you know is spam. If you ever get a visitor arriving at your website who claims to have arrived from http://www.example.com you may want to block them. Simply enter:

    *example.com

    as your blocking pattern. Just like in the web browser examples above, referer blocking uses the asterisk (*) as a wildcard to let you specify patterns that either start with, end with or contain your text.

    https://www.wordfence.com/help/blocking/#custom-pattern is also a great reference for blocking custom patterns.

    Let me know if this helps!

    Thanks!

    @wfadam Thanks for looking into this.

    I want to block this list but for obvious reasons I don’t wish to enter them one by one:
    https://github.com/matomo-org/referrer-spam-list/blob/master/spammers.txt

    You can see how I tried to tackle my problem in the screenshot.
    Will that work? 🙂
    https://imgur.com/a/rvfjGn0

    Kr,

    Plugin Support WFAdam

    (@wfadam)

    @progonkpa

    Indeed crafty, but I am not sure that will work the way you want it to. I have not personally tested that though.

    You will have to add them one by one, good thing being you can always export it and save it, so you won’t have to do it ever again.

    Thanks!

    Yeah that’s not going to happen lol :’D

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.