utm.edu

This is where you should report issues arising from the subscription filters.
Locked
giogziro95
New Member
New Member
Posts: 4
Joined: Thu May 18, 2017 10:02 pm
Location: Tbilisi, Georgia

utm.edu

Post by giogziro95 »

Issue

A filter in EasyPrivacy list is blocking the University of Tennessee at Martin website (utm.edu).
  • List: EasyPrivacy
  • Version: 201804231945
  • Filter:

    Code: Select all

    http://utm.$domain=~utm.md|~utoronto.ca
  • Affected page: http://utm.edu/

Solution

ABP filter syntax allows you to use regex, so the following one can be used to avoid matching the second-level domain names (unless they the hierarchical extensions to the top-level domains, such as .co.uk):

Code: Select all

/^https?\:\/\/([^\.\/]+\.)*utm(?!\.(com|co|net|me|org|edu|ac|gov|mil|int)(\.[^\.\/]+)(\/.*)?$)\3{2,}\/?.*$/
regexper.com visualization https://i.imgur.com/sGbYq6l.png
User avatar
smed79
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 »

•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
giogziro95
New Member
New Member
Posts: 4
Joined: Thu May 18, 2017 10:02 pm
Location: Tbilisi, Georgia

Post by giogziro95 »

Great, but I'm wondering why not just use regex instead of adding exceptions one-by-one? Blocking everything but a few exceptions that includes utm. is a very strict policy. Furthermore, URLs may not include it right in the beginning, like foo.utm.example.com. It could also be https:// rather than http://.

You could simply use:

Code: Select all

/^https?\:\/\/([^\.\/]+\.)*utm(?!\.(com|co|net|me|org|edu|ac|gov|mil|int)(\.[^\.\/]+)(\/.*)?$)\3{2,}\/?.*$/$domain=~utoronto.ca
And if there are tracking services that use utm in the top-level domain, you could simply add their filters separately.

This would be nearly as effective, yet with nearly no false positives.

If you have a time to respond, please do. Thanks. :)
User avatar
smed79
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 »

As i am not an easylist author and i don't know for what reason this filter is added I can not answer you or do an advanced change.
I only proposed a quick standar fix which is merged by @monzta

Wait @Khrin or @fanboy to answer you.
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
Locked