Skip to content

Instantly share code, notes, and snippets.

@nk23x
Last active April 23, 2019 21:15
Show Gist options
  • Save nk23x/79af9cf24a7099212ac9 to your computer and use it in GitHub Desktop.
Save nk23x/79af9cf24a7099212ac9 to your computer and use it in GitHub Desktop.
tinyproxy.conf + tinyproxy_filter (work) using custom adblock filters
##
## tinyproxy.conf -- tinyproxy daemon configuration file
##
Port 3128
Timeout 15
LogFile "/var/log/tinyproxy.log"
LogLevel Info
PidFile "/var/run/tinyproxy.pid"
no upstream "localhost"
no upstream "127.0.0.1"
no upstream "192.168.56.1"
no upstream "172.16.200.0/24"
no upstream "10.100.20.0/24"
no upstream "10.113.3.0/24"
no upstream "10.0.0.0/24"
no upstream ".lan"
no upstream ".lan.com"
upstream upstreamproxy.lan:3128
MaxClients 28000
MinSpareServers 3
MaxSpareServers 5
StartServers 3
MaxRequestsPerChild 0
# Allow 127.0.0.1
# Allow localhost
# AddHeader "X-My-Header" "Powered by Tinyproxy"
ViaProxyName "tinyproxy"
DisableViaHeader Yes
Filter "/usr/local/etc/tinyproxy_filter"
FilterURLs On
FilterExtended On
# FilterCaseSensitive On
# FilterDefaultDeny Yes
ConnectPort 443
ConnectPort 6697
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>{package}: {errno} ({cause})</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<h1>{errno} - {cause}</h1>
<p>{detail}<br />URL: <a href="{url}">{url}</a></p>
<pre>
{date}
{clientip} ({clienthost})
{request}
</pre>
<p><small><a href="{website}">{package}</a> v{version}.</small></p>
</body>
</html>
ivwbox.de
api.tweetmeme.com
mixpanel.com
media.xda-developers.com/images/*
media.xda-developers.com/customavatars/*
torrentfreak.com/wp-content/themes/torrentfreak/site-images/*
torrentfreak.com/images/*
api.flattr.com
in.getclicky.com/in.php?*
static.getclicky.com
paypalobjects.com
sharethis.com
histats.com
www.cx.com/mycx/assets/images/ui/icn-300mb.png
cx.com/mycx/assets/images/ui/bg-referral-girl.png
hidemyass.com/images/proxified/*.png
websnapr.com
rss.feedsportal.com
feeds.feedburner.com/~ff/*?i=*
flattr
plista.com
api.brightcove.com
edgesuite.net
www.paypal.com/*/i/*
ext.host-tracker.com
static.thegeekstuff.com/images/*
filenuke.com/images1/
facebook.com/plugins/likebox.php
tools.pingdom.com/fpt/_img/sprites.png
cloudfront.net/img/*
chatango.com
sndcdn.com/avatars-*t20x20.*
bitshare.com/other/images/bitshare*
bitshare.com/static/images/*
addthis.com
ssl.google-analytics.com/ga.js$third-party
media.tumblr.com/*.gif
letour.fr/*autopromo*
taboolasyndication.com
taboola.com
tweetwally.com/amm/themes/tweetwally/images/*
a.fsdn.com/con/img/jobs/*
sourceforge.net/jobs/*
mailinatorguy.com/wp-content/uploads/20*/*.jpg
static.ak.facebook.com/connect/xd_arbiter.php?version=*&origin=*www.mailinator.com
www.facebook.com/plugins/like_box.php?*Mailinator*
offliberty.com/$domain=mixcloud.com
toma.hk/
mail.google.com/mail/help/images/logo1.gif
sndcdn.com/assets/swf/*$domain=soundcloud.com,~collapse
googletagmanager.com
bilder.clipfish.de/ip/admeta.xml
endungen.de/css/*
api.soundcloud.com/*/comments*
www.adobetag.com
dw.cbsimg.net
cdn.clicktale.net
clicktalecdn.sslcs.cdngc.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment