Hello Privoxy users,
I created this path blocking file. It has been, so far, very successful—for me, at least—in blocking any suspicious path that could neither be recognised by the converted
hosts file nor filtered properly by my
.filter files. Often, I felt very lucky to have those loaded path patterns to block some nasty trackers. Anyone is warmly welcome to make this path blocking file far better than it is today. For your info, I rarely touch this file whenever I encounter something that shouldn't be blocked. When I have a problem, it's mainly a
.filter file-related issue. Thus, the need to create an exception. Of course, if you visit a news article talking about, for example, a social network, it will be blocked, but you can force Privoxy to let you through the website!
Code:
{ +block{Restrained Access: Declined Paths} }
#
# Paths
#
/(.*/)?bons?-?plans?
/(.*/)?core/metrics?/
/(.*/)?core(/ux/|-)
/(.*/)?.*(campaign|comm?ercial|marketing|parte?n(er|aire?)|promo|social).*
/(.*/)?.*(anti-?spam|bug.?snag|detect[^/]*browser|market.?place|zoneid=).*
/(.*/)?.*(ads?.?loader|browser[^/]*detect|deal(_|-|s)|le.?guide|metrics).*
/(.*/)?.*(ip=(\.?[0-9]+){4}|retarget|((sm|u)id|referr?er|server.?time)=).*
/(.*/)?.*(iframe|use?r.?(agent|g?u?id)|lat.?lo?ng|(pub.?id|time.?zone)=).*
/(.*/)?.*((ever|flash|super|mbie).?cookie|(language|resolution|screen)=).*
/(.*/)?.*(ad.?module|aff?ill?iate|(browser|country)=|polls?|reff?err?al).*
/(.*/)?.*(analytics?|(c|p)id=|finger.?print(s|e(d|r)|ing)?|interstitial).*
/(.*/)?.*((brand|charset|cid|isp|MAC(.?add?r(esse?)?)|model|signature)=).*
/(.*/)?.*(logge(r|d)|mailchimp|pixel|product.?ads?|track(er|ing)?).*
/(.*/)?.*(-ads-?|ad.?manager|live.?chat|splash.?page|subscribe).*
/(.*/)?.*((caid|vpid)(-|_|=|\.)).*
/(.*/)?.*(chartbeat|cross.?sell|facebook|forester|mobiquo|sessioncam|yahoo).*
/(.*/)?.*(brightcove|googleads|obelusmedia|tag(commander|man)|xiti|zendesk).*
/(.*/)?.*(acymailing|bazaarvoice|boomr|cooladata|olark|omniture|trustpilot).*
/(.*/)?.*(blueconic|bluekai|breadcrumb|freshdesk|dmptag|usabilla|nugg\.?ad).*
/(.*/)?.*(adchemix|cedexis|segmentify|optincrusher|smartad|visual.?revenue).*
/(.*/)?.*(adrum|gigya|hapyak|konverto|krux|linkedin|openx|parsely|proximic).*
/(.*/)?.*(clickfunnel|disqus|google?.?plus|marocrank|optimizely|socket\.io).*
/(.*/)?.*(captify|geo.?(ip|loc(at(e|ion|or))?|(profile?|service)s?|=)).*
/(.*/)?.*(runcpa).*
/(.*/)?sponsor(e?(d|s))?/
/(.*/)?widgets?/social.*counts?/
{ +block{Restrained Access: Declined Javascript} +handle-as-empty-document }
#
# .JS Files
#
/(.*/)?(java)?scripts?/xtcore.*\.js
/(.*/)?(counts?|rokmedia(quer(y|ies))?|silverlight|tapestry.messages?|xtcore)\.js
/(.*/)?.*(audience|boomerang|conversion|nagad|recomm?end(ation)?|rtb|zepto).*\.js
/(.*/)?.*(ad.?bloc?k?|advert).*\.js
/(.*/)?.*(analy(s|z)er?|chat.?box|counter|mouse|profile?|survey|sso|tag)[^/]*\.js
/(.*/)?.*(click?|compteur|crm|monitor|radar)[^/]*\.js
/(.*/)?.*(streamsense)[^/]*\.js
/(.*/)?.*([^a-z]*ads|hitometer|injection|plusone|pub|social.*(pop-?up|tag)s?)\.js
/(.*/)?([a-zA-Z0-9]+(-|_|\.))?i?stats?[^/]*\.(js|php)
/(.*/)?bug\.(gif|jpe?g|png)
/(.*/)?.*cookie.*\.js
{ -block }
.thetrainline.com/Scripts/src/stationlist.js
Above patterns have been truly matched in actual browsing; they're not invented for the sake of playing with REGEX. However, I must admit I haven't seen any string matching this pattern:
MAC(.?add?r(esse?)?); just in case of…
Cattleyavns & Whenever, the baby is yours; tweak it the way you think it should be.
New additions and updates to come soon!