Skip to content

Commit 7c2ab86

Browse files
committed
v10.3-commit
1 parent 77406b7 commit 7c2ab86

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

libs/grab_http.sh

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,17 @@ for A in {0..5}; do
110110
f_do
111111
done
112112

113-
mkdir ipv4; mv phishing malware; mv gambling trust+ # make some adjusment
114-
cat vpn/domains >> redirector/domains; rm -rf vpn #+ to categorizing
115-
mapfile -t ar_cat < <(f_cat) # categorizing
113+
mkdir ipv4; mv phishing malware; mv gambling trust+ # make some adjusment to categorizing
114+
cat vpn/domains >> redirector/domains; rm -rf vpn
115+
mapfile -t ar_cat < <(f_cat)
116116
f_frm "txt.*" # sweep stale domain-lists
117-
ar_dmn=() # tmp files: raw-domains
118-
ar_txt=() #+ : processed-domains
119-
for B in "${!ar_cat[@]}"; do
120-
ar_dmn+=("${ar_cat[B]}"/domains); ar_txt+=(txt."${ar_cat[B]}")
121-
done
117+
ar_dmn=(); ar_txt=() # tmp files: raw-domains && processed-domains
118+
for B in "${!ar_cat[@]}"; do ar_dmn+=("${ar_cat[B]}"/domains); ar_txt+=(txt."${ar_cat[B]}"); done
122119
printf "%12s: ${_CYN}\n" "categorized" "${ar_cat[*]} (${#ar_cat[@]} CATEGORIES)"
123120

124121

125122
# category: TRUST+
126-
# contents: gambling domains and [TRUST+Positif](https://trustpositif.kominfo.go.id/assets/db/domains_isp)
123+
# contents: gambling domains and TRUST+
127124
#+ ${ar_cat[5]} with 2 additional entries: ${ar_url[1,7]}
128125
f_sm7 "${ar_cat[5]}" 2
129126
trust=$(mktemp -p "${_DIR}"); porn=$(mktemp -p "${_DIR}")
@@ -132,16 +129,15 @@ f_sm6 1 "${ar_uri[1]}"; f_do # add gambling-domains to trust+ catego
132129
f_sm6 7 "${ar_uri[7]}" # https://trustpositif.kominfo.go.id/assets/db/domains_isp
133130
f_add "${ar_url[7]}" > "${trust}" #+ frequently error-code curl: (35) & firefox: PR_CONNECT_RESET_ERROR
134131
#cp ~/Downloads/domains_isp "${trust}" #+ download then switch line above to comment and it's to uncomment
135-
LC_COLLATE=C grep -P '[^\x00-\x7F]' "${trust}" | idn --quiet > "${idna}" # capture non a legal IDN, then use
136-
cat "${idna}" >> "${trust}"; f_do #+ idn tool to convert it's to ASCII
132+
LC_COLLATE=C grep -P '[^\x00-\x7F]' "${trust}" | idn --quiet > "${idna}" # capture non a legal IDN, then
133+
cat "${idna}" >> "${trust}"; f_do #+ convert it's to ASCII with idn tool
137134
printf "%12s: %-66s" "reducing" "porn domains and move it's to ${ar_cat[0]^^} CATEGORY"
138135
f_add "${ar_url[18]}" > "${porn}" # used as a control to reducing adult-domains as
139136
_srt -us "${trust}" -o "${trust}" #+ listed in "${trust}", then move it's to
140137
_srt -s "${trust}" "${porn}" | uniq -d > "${untrust}" #+ adult category "${ar_dmn[0]}"
141138
_grp -E "${ar_reg[1]}" "${trust}" >> "${untrust}" #+
142139
f_awk "${untrust}" "${trust}" "${ar_dmn[5]}" # reducing adult entries by moving it's
143-
cat "${untrust}" >> "${ar_dmn[0]}" #+ to adult category
144-
f_do
140+
cat "${untrust}" >> "${ar_dmn[0]}"; f_do #+ to adult category
145141
f_fix "${ar_cat[5]}" "${ar_dmn[5]}" "${ar_txt[5]}"; f_do # fixing false-bad entries
146142
f_fip "${ar_txt[5]}" "${ar_dmn[1]}" "${ar_cat[1]^^}" #+
147143

libs/grab_regex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
s/[A-Z]/\L&/g;s/([[:space:]]|[[:punct:]]|[[:space:]]?[\/#;:].*)$//g;s/^(www\.){1,}//g;/(^$|[^\o0-\o177])/d;/(^.{4,255}$|[.])/!d;/(\..{1}|[a0-z9\-]{25,}|adult|bet|cas(h|ino)|cam(era)?|gay|lgbt|lotto|poker|porn|sexy?|tube|webcam|xxx)$/d;/(\.|^)(apps\.facebook\.com\.web\.tld\.cc|(github|googleadservices|instagram|reddit|tinyurl|vimeo(indo)?|yahoo)\.com|mikrotik\.co\.id|torproject\.org)$/d;/xh(adult|branch|eve|tree|vid[^e]|victory)/d
1+
s/[A-Z]/\L&/g;s/([[:space:]]|[[:punct:]]|[[:space:]]?[\/#;:].*)$//g;s/^(www\.){1,}//g;/(^$|[^\o0-\o177])/d;/(^.{4,255}$|[.])/!d;/(\..{1}|[a0-z9\-]{25,}|adult|bet|cas(h|ino)|cam(era)?|gay|lgbt|lotto|poker|porn|sexy?|tube|webcam|xxx)$/d;/(\.|^)(apps\.facebook\.com\.web\.tld\.cc|(github|googleadservices|instagram|reddit|tinyurl|vimeo(indo)?|xh(adult|branch|eve|tree|a?vid|victory)[0-9]?{1,}|yahoo)\.com|mikrotik\.co\.id|torproject\.org)$/d
22
(adult|agency|amat(eu|i|u)r|an(al|im)|asshole|ayamkampus|babe|bbw|bdsm|big(tit|ass)|bi(kini|nal|rahi|spak)|blo(nde|wjob)|bo(kep|ob|b[^e])|bond(a|age)|breast|bugil|bukkake|bus(en|ty)|cam|[^lqrtu8-]cantik[^q]|ce(leb|nterfold|wek)|cli(t|max)|co(ck|itus|lmek|splay)|creampie|cr[ou]t|cu(m|nil|nni)|daunmuda|de(licate|prav|wasa)|dildo|e[brsx](ony|ection|oti|ek|cort|perience)|facial|[^ahl]f[ae](t+)[iy]|faggot|felicia|fem(me|inin)|fe(t+)ish|finger|film|free|fuck|ga(dis|irah|ngbang|y)|gender|gigolo[^t]|girl|granny|hard(core|er)|hasrat|henta[iy]|ho(oter|te[rs])|horn[iy]|huge|janda|jav[^aiv]|jembut|jizz|jorok|kamasutra|kontol|latina|lendir|le(sb|z)|licking|lingerie|lolit|lonte[^qr]|lust|^manga|mature|me(mek|sum)|milf|model|movie|[^aghirlsnt]malam|muncrat|nak(al|ed)|na[pf]su|naughty|nenen[^cq]|nge(mut|ntot|we)|mulus|nikmatan|nonton|nud(e|is)|rgasm|obscene|^oral|orgy|pant(at|i)|payudara|pe(dophil|juh|lacur|muas|nis)|per(awan|ek|verse|empuan)|photo|[^e]pics[^$]|pi(ctu|jat|ssing)|playmate|porn|pov|pro(found|st)|puss[iy]|^puting|([^e]ranjang|^ranjang|ranjang\.)|remaja|romant|^rough|sange|salop|seks|[sz]ex|semok|shemale|show|s[lm]ut|sodom|spread|squirt|stocking|su(ck|su[^kpqn])|swing|syur|tante(^p|p[aeirs])|tante|te(en|tek)|threesome|ti(ght|tit|ts)|toge[^nlr]|to(ket|ngue)|topp?les|tub(uh|e)|vid[ei]o|vi(ntage|rgin)|voyeur|wanita|whore|wom[ae]n|^x[^n][^\-]{2}|\.x\.|[x]{2,4}|young|zoo)
33
(bandar|bett?ing|bingo|blackjack|(bo|free)bet|bola|bookie|cas(h|ino)|dewa(na|qq|re)|domino|gacor|gambl(er?|ing)|hoki|jackpot|[^ey]judi|lot([0-9]{1,}|tery|to)|maxwin[^t]|menang|poker|qiuqiu|^qq[0-9]{1,}|sabung|slot(s|[^ho])|suhu|taruhan|to(gel|to)|untung|wager|(bb|mar|ou)win[0-9]|(account|bets?|hemp|account|block)\.(com|net)$|\.id$)
44
^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$

zones-rpz/rpz.ipv4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $ORIGIN ipv4.domain.
3232
; 45.144.149.78 xhtree.com
3333
; 45.144.149.79 xhtree1.com
3434
; 45.144.149.81 xhbranch13.com
35-
; 45.144.149.0/25 xh(adult|branch|eve|tree|vid[^e]|victory)
35+
; 45.144.149.0/25 xh(adult|branch|eve|tree|a?vid|victory)
3636
;
3737
; Policy Trigger - IP Trigger - NXDOMAIN Action
3838
25.0.149.144.45.rpz-ip CNAME .

0 commit comments

Comments
 (0)