hongaar / semalt-blocker

:no_entry: Self-updating PHP library which blocks referral spam from ruining your website statistics
http://nabble.nl/semalt/
MIT License
68 stars 5 forks source link

Implement subdomain matching #12

Closed hongaar closed 8 years ago

hongaar commented 8 years ago

Right now, subdomains are stripped before importing blocklist and before doing any comparison between referer <-> blocklist. (i.e. right now mozilla.org is on the blocklist)

Current situation:

Source Blocklist Referer Blocked
addons.mozilla.org/.../... mozilla.org *.mozilla.org Y
urlopener.blogspot.com.au blogspot.com.au *.blogspot.com.au Y
semalt.com semalt.com 43.semalt.com Y

New situation:

Source Blocklist Referer Blocked
addons.mozilla.org/.../... - *.mozilla.org N
urlopener.blogspot.com.au urlopener.blogspot.com.au urlopener.blogspot.com.au Y
semalt.com semalt.com 43.semalt.com Y