Commit Graph

1349 Commits

Author SHA1 Message Date
MDLeom 89e8f56702
style: remove unnecessary global flag in sed
not required when matching once per line
2025-03-19 11:10:11 +00:00
MDLeom f4377f1fe6
fix: add address separator to adblock filters
handle url that ends with $
$ is not percent-encoded by browsers
2025-03-19 10:42:23 +00:00
MDLeom 62c754fe23
fix(clean_url): encode ^
this is unrelated to address separator of adblock filter syntax
https://adblockplus.org/filter-cheatsheet#blocking1
which does not need to be escaped
uBO can handle this pattern just fine
||example.com/so%5Emany?ca^r=e^t^$all

query string does not need to percent-encode ^,
only pathname
2025-03-19 10:36:59 +00:00
MDLeom fd8184a806
fix(clean_url): encode all space 2025-03-19 10:36:59 +00:00
MDLeom 5b432df69c
fix(ids): include query string 2025-03-19 10:36:51 +00:00
MDLeom e4002c1110
fix(clean_url): disable terminal
does not expect stdin/out to have escape code
2025-03-18 11:20:47 +00:00
MDLeom d2dc5fbfed
style: standardjs 2025-03-18 10:37:32 +00:00
MDLeom 9d4668bcbd
fix: match top domains to input hostname
instead of url.
to minimise entries such as "bad.com/interactivelogin?continue=https://accounts.google.com"
however, subdomains of top domains will no longer match
2025-03-18 10:32:50 +00:00
MDLeom 58a15ee1df
feat: more robust url parsing
better handle of edge cases
add IPv6 support
increase nodejs requirement to v20 due to URL.canParse()
  https://developer.mozilla.org/en-US/docs/Web/API/URL/canParse_static#browser_compatibility
2025-03-18 10:32:00 +00:00
MDLeom 9b2fe384fd
fix: sid numbering 2025-03-17 11:59:29 +00:00
MDLeom 45783a46b3
perf: rewrite IDS rule creation in javascript
"while do" can be inefficient
previously took >5 minutes is now less than 1 second
2025-03-17 11:51:53 +00:00
MDLeom ec9288267c
fix: match safelink domains
avoid matching path
2025-03-17 10:37:53 +00:00
MDLeom ab5dca49b4
refactor: handle url-without-path & safelinks without "while read"
"while read" can be inefficient
2025-03-16 12:37:56 +00:00
MDLeom 6e359f9a79
fix: remove trailing slash from domain
to replace previous workaround 0578e6c16a
2025-03-16 10:05:02 +00:00
MDLeom ec3dfd77c2
docs: mention PhishTank
revert 352aa34c32
2025-03-16 07:44:01 +00:00
MDLeom 993bb958f5
fix: skip phishtank if download fails 2025-03-16 07:37:17 +00:00
MDLeom 56d67d2a41
Revert "feat: remove phishtank source"
This reverts commit b3f6e90b9a.
https://gitlab.com/malware-filter/phishing-filter/-/issues/40#note_1849507513
2025-03-16 06:56:41 +00:00
MDLeom addedf9c00
ci(gl): add git
required by peaceiris/actions-gh-pages
2025-03-11 07:26:07 +00:00
MDLeom be1b6c05d7
fix: remove credential from domain/IP
fixes 
2025-03-11 07:23:02 +00:00
MDLeom 06fe677816
ci: install file
remove git
2025-03-08 01:22:48 +00:00
MDLeom e1b051b2fc
fix: remove response header
showing it will stop showing download progress/size
2025-03-08 00:07:04 +00:00
MDLeom a500fca678
fix: use redirected tranco link 2025-03-07 23:55:14 +00:00
MDLeom c5fd7f7d34
fix: output response header to stdout
https://codeahoy.com/general/curl-display-request-response-headers
2025-03-07 23:53:52 +00:00
MDLeom b94d832896
fix: skip tranco if download fails 2025-03-07 23:42:22 +00:00
MDLeom 7e8139510d
style(rpz): generic syntax 2025-02-16 00:44:21 +00:00
MDLeom 78308d7a0b
docs: uBO link 2025-02-16 00:33:23 +00:00
MDLeom 54c487bdcb
docs: pi-hole & brave 2025-02-16 00:32:04 +00:00
MDLeom cd4f298bba
docs: replace mitchellkrogza with IPThreat 2025-02-16 00:27:42 +00:00
MDLeom 677c3b0320
style: table 2025-02-16 00:24:50 +00:00
MDLeom 3529e93ba3
feat: wildcard asterisk 2025-02-16 00:23:22 +00:00
MDLeom 8506f18029
chore: remove unused oisd exclusion 2025-02-15 01:12:03 +00:00
MDLeom f1fa7e450c
build: zstd compress 2025-02-15 01:10:20 +00:00
MDLeom 7f90191c49
feat: add ipthreat.net source 2025-02-08 06:24:03 +00:00
MDLeom d7145f19e1
refactor: parallel rm() 2024-10-27 07:06:04 +00:00
MDLeom 58e50a2f85
build: remove file >=25MiB in cf pages 2024-10-27 07:02:06 +00:00
MDLeom 4cdf3fa532
build: only remove .rules from Cloudflare Pages 2024-10-27 05:46:42 +00:00
MDLeom 293507fead
refactor: extract zip from stream 2024-10-27 05:34:06 +00:00
MDLeom 7fc7d62cc2
chore(deps): bump actions-gh-pages from 3 to 4 2024-10-13 02:37:53 +00:00
MDLeom 614c384390
chore(deps): bump actions/upload-artifact from 2 to 4 2024-10-13 02:37:44 +00:00
MDLeom 8702981a79
fix: unzip alternatives 2024-07-15 09:43:11 +00:00
MDLeom f07ad2ce4e
refactor: set pipefail conditionally 2024-07-15 08:02:25 +00:00
MDLeom 827342f3e9
fix: expand alias in bash 2024-06-03 08:21:56 +00:00
MDLeom 358003b782
fix: subdomains may be completely excluded 2024-05-03 11:16:01 +00:00
MDLeom 2ee0b2d661
feat(source): disable mitchellkrogza/Phishing.Database
source does not offer online-only links
closes 
2024-05-02 12:00:37 +00:00
MDLeom bcf5e9964c
build(cf): compatibility between asdf & nvmrc
https://github.com/asdf-vm/asdf-nodejs#partial-and-codename-versions
2024-04-09 10:06:18 +00:00
MDLeom d024486c77
chore(node): use latest lts
consistent with gitlab/github CI
https://github.com/asdf-vm/asdf-nodejs#resolving-latest-available-lts-version-in-a-script
2024-04-07 06:28:54 +00:00
MDLeom e9ae4a9f11
refactor: replace got with fetch 2024-04-07 00:45:34 +00:00
MDLeom 607208c171
fix: check file exists and not zero size 2024-03-10 07:49:19 +00:00
MDLeom a1548a5e1c
fix: may not necessarily contain ipv4 entries 2024-03-10 03:06:51 +00:00
MDLeom 00d43e98d3
fix(exclude): click.mail.onedrive.com 2024-03-09 04:28:57 +00:00