Commit Graph
156 Commits
Author SHA1 Message Date
Viet Huynh 0828fd3352 updated remaining list terms 2023-09-17 16:52:03 +07:00
Viet Huynh 245cc2e8cf ported list download code to JS 2023-09-17 16:48:34 +07:00
Viet Huynh 63e597d15a added concurrency to workflow 2023-09-17 16:20:48 +07:00
Viet Huynh 083335278c updated blocklist check logic to prevent adding a subdomain if a higher-level domain is already blocked 2023-09-15 05:36:19 +07:00
Viet Huynh 695d7c7f5a fixed to count allowed domains correctly 2023-09-12 20:19:09 +07:00
Viet Huynh 811205ccc2 trim before processing domain 2023-09-12 17:32:05 +07:00
Viet Huynh fccfdaba00 fixed last chunk expression 2023-09-12 17:19:32 +07:00
Viet Huynh cc3ebd147a cleaned up code 2023-09-12 17:06:11 +07:00
Viet Huynh 9c4ce9c759 cleaned up rules code 2023-09-12 17:04:28 +07:00
Viet Huynh 40772b567d refactored domain processing code 2023-09-12 16:35:16 +07:00
Viet Huynh e96d0f719a added .editorconfig 2023-09-12 16:28:10 +07:00
Viet Huynh f103f839e6 set NODE_ENV to production 2023-09-12 03:39:15 +07:00
mrrfv 401f4d34f0 Merge pull request #22 from hlqviet/refactor/api-request
API request code refactor
2023-09-11 18:46:28 +02:00
mrrfv aa7cec1e15 Warn if using an unsupported Node version 2023-09-11 18:42:36 +02:00
Viet Huynh 6185f9e223 added back node-fetch with dynamic import 2023-09-11 02:54:55 +07:00
mrrfv ba2db9e3d4 Wrap rule name in quotes when creating list 2023-09-10 12:54:52 +02:00
mrrfv ac9c6925a1 Wrap rule name in quotes when deleting 2023-09-10 12:30:00 +02:00
mrrfv 025d705efa Use await with functions that return a promise 2023-09-10 12:27:58 +02:00
mrrfv 9299d69694 "Success" -> "HTTP request succeeded" 2023-09-10 12:25:10 +02:00
mrrfv 40a3c96a7d Require Node 18 or above in package.json 2023-09-10 12:24:34 +02:00
Viet Huynh cd91b32d4d moved environment variables in workflow to job level 2023-09-10 06:47:46 +07:00
Viet Huynh 185e30fa31 updated DRY_RUN instruction 2023-09-10 03:58:31 +07:00
Viet Huynh 055ef5a548 added API docs 2023-09-09 23:56:47 +07:00
Viet Huynh d82c0dfc37 updated README for FAST_MODE 2023-09-09 23:55:11 +07:00
Viet Huynh fe51d78641 moved environment variables to workflow level 2023-09-09 23:45:43 +07:00
Viet Huynh 2e21859a53 removed node-fetch 2023-09-09 23:38:53 +07:00
Viet Huynh ad84881921 fixed helper log 2023-09-09 23:25:05 +07:00
Viet Huynh 77b6ac7dfc fixed helper log 2023-09-09 23:23:26 +07:00
Viet Huynh faad7d12b3 refactored rule deletion 2023-09-09 23:17:32 +07:00
Viet Huynh 8e96c87c27 refactored rule creation 2023-09-09 23:12:22 +07:00
Viet Huynh 603c9a0870 fixed list creation 2023-09-09 22:43:56 +07:00
Viet Huynh b77da7b278 refactored list deletion 2023-09-09 22:26:57 +07:00
Viet Huynh ed5f24b6ec reorganized code 2023-09-09 21:43:57 +07:00
Viet Huynh 61d6c03704 handle API error 2023-09-09 21:24:02 +07:00
Viet Huynh 53803edc6e reorganized API code 2023-09-09 20:46:56 +07:00
Viet Huynh bc3b16f5fa removed list ID output 2023-09-09 19:54:44 +07:00
Viet Huynh 43bd87f2dd use native fetch and refactored list creation 2023-09-09 19:53:47 +07:00
Việt Huỳnh f7f9001ec5 Merge branch 'main' into upstream 2023-09-09 02:39:15 +07:00
Viet Huynh 28d359e02f use original repo by default 2023-09-09 02:37:00 +07:00
mrrfv b667585cbc Clarify the DRY_RUN env variable value 2023-09-08 20:13:54 +02:00
mrrfv 452c81b151 Migrate to node-fetch and import syntax
#17
2023-09-08 20:10:06 +02:00
mrrfv dc4e1b1155 Only show the count of whitelisted domains 2023-09-08 19:58:31 +02:00
mrrfv 5a287742b8 Quote a command in shell files 2023-09-08 19:49:50 +02:00
mrrfv d2d416c888 Remove unnecessary newlines from readme 2023-09-08 19:48:43 +02:00
Viet Huynh 86a0f87f6d moved helpers to lib directory 2023-09-08 18:06:43 +07:00
Viet Huynh 6cf50bddcf updated workflow so it works correctly on the forked repo 2023-09-08 05:41:30 +07:00
mrrfv dd8b741bf2 Update filter lists
AntiMalwareHosts has to be removed because it makes the filter lists exceed the 300,000 domains limit. Furthermore, Cloudflare Zero Trust itself can be configured to block malware domains so this feels redundant.
2023-09-07 21:09:23 +02:00
mrrfv 21b4b62e5f Add whitelist to gitignore 2023-09-07 21:06:08 +02:00
mrrfv 38d2f48024 Show how much over the domain limit we are 2023-09-07 21:05:42 +02:00
mrrfv cbca9613c6 Dry run support 2023-09-07 20:57:08 +02:00