Last active
March 13, 2024 00:14
-
-
Save lepz0r/7c5f823695c630e5d00aa074d01d9e0d to your computer and use it in GitHub Desktop.
Filter Privoxy untuk menghapus inject iklan Telkomsel & Indihome | Privoxy filter to remove Telkomsel & Indihome ad injection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Simpan file ini ke C:\Program Files (x86)\Privoxy\isp-ads.filter untuk Windows 64-bit, C:\Program Files\Privoxy\isp-ads.filter untuk Windows 32-bit, /etc/privoxy/isp-ads.filter untuk linux | |
# 2. Tambahkan "filterfile isp-ads.filter" ke C:\Program Files (x86)\Privoxy\config.txt untuk Windows, /etc/privoxy/config untuk linux | |
# 3. Tambahkan ini (tanpa '#') ke C:\Program Files (x86)\Privoxy\match-all.action untuk Windows, /etc/privoxy/match-all.action untuk Linux | |
# | |
# {+filter{isp-ads} +server-header-filter{isp-ads-page}} | |
# / | |
# | |
# Video (Windows): https://youtu.be/mbfp2SIVnsU | |
# EN: | |
# 1. Save this file to C:\Program Files (x86)\Privoxy\isp-ads.filter For Windows (32-bit Windows save to C:\Program Files\Privoxy\isp-ads.filter instead) (/etc/privoxy/isp-ads.filter for Linux) | |
# 2. Add "filterfile isp-ads.filter" to C:\Program Files (x86)\Privoxy\config.txt for Windows (/etc/privoxy/config for linux) | |
# 3. Add this (Without '#') to C:\Program Files (x86)\Privoxy\match-all.action (/etc/privoxy/match-all.action for Linux) | |
# | |
# {+filter{isp-ads} +server-header-filter{isp-ads-page}} | |
# / | |
# | |
# Video (Windows): https://youtu.be/mbfp2SIVnsU | |
SERVER-HEADER-FILTER: isp-ads-page | |
s@Location:( )?http(s)?:\/\/welcome\.indihome\.co\.id.*@Location: $url@igD | |
FILTER: isp-ads | |
s@<meta http-equiv="refresh"content="0;URL=http:\/\/ads\.telkomsel\.com\/ads-request.*?\/>@<meta http-equiv="refresh"content="0";URL=$url>@igD | |
s/<script src="http:\/\/ads\.telkomsel\.com.*?>/<script>location.reload(false);/ig | |
s/<link href="http:\/\/ads\.telkomsel\.com:8004\/.*?type="text\/css" \/>//ig | |
s@<script.*?>if .*?(\.)?notifa\.info.*?<\/script>@@igD | |
s@<script.*?>if .*? {function netbro_cache_analytics.* requestCfs\(\).*{var idc_glo_url .*netbro_cache_analytics.*<\/script>@@ig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment