Closed manhduonghn closed 1 year ago
I installed cloudflare-gateway-adblocking on pypi but when I use command cloudflare-gateway-adblocking --account-id
, it said Error
What error are you receiving? In addition to your account ID, you need to specify your access token.
Also, you need to use a subcommand. I assume you're trying to create the ad blocking rules. For this, you need to run cloudflare-gateway-adblocking upload
, not just cloudflare-gateway-adblocking
.
Only use cloudflare-gateway-adblocking upload
? No need set cloudflare-gateway-adblocking --account-id
Only use
cloudflare-gateway-adblocking upload
? No need setcloudflare-gateway-adblocking --account-id
You still need to set your account ID and token. This can be done either with command-line flags, environment variables, or a .env
file
Considering you closed the issue, is it working now?
I try to run on termux and Github codespace and it not work. Can't add account id
What error are you encountering?
I was delete it but I try 7 times,it still fail when I command cloudflare-gateway-adblocking --account-id
In that case, you need to use the delete
subcommand. You're also missing a Cloudflare token.
Your command should look like this:
cloudflare-gateway-adblocking --account-id <account ID> --token <token> delete
Since you marked it as closed, did you resolve the issue?
I will try it tomorrow
Okay, please leave the issue open for now. Closing the issue marks it as completed by default.
#
How to do that? I use Termux. Thanks
#
How to do that? I use Termux. Thanks
To create the ad-block policy, you need to specify where your blocklist file/directory is with --blocklists <path>
. This error is being raised as you have not specified a filepath which exists, and ./blocklists
also doesn't exist.
Still unknown to use. So sorry
Still unknown to use. So sorry
You need to download (or create) a blocklist in the format of a hosts file, and then specify the path to that file with --blocklists
.
Can I do it with my android phone?
Can I do it with my android phone?
Using Termux, you should be able to.
cloudflare-gateway-adblocking --account-id () --token () upload --blocklists ./storage/emulated/0/Download/hosts.txt
not work
I think you make Github Action to run code is better. Everyone can do that
./storage/emulated/0/Download/hosts.txt
I think this should be /storage/emulated/0/Download/hosts.txt
without the .
before /
since this isn't a relative path.
I think you make Github Action to run code is better. Everyone can do that
Github actions is meant more for CI/CD, which this is not.
It said that
It said that
What scopes did you give to your token when generating it?
Make sure you're using the right account ID as well
Yes, I use right ID user and my token is full permissions
This token works when I use your tool
This token works when I use your tool
It also needs write/edit access to the scopes listed in the README
This is my token configuration:
I set permissions like that but it said
I set permissions like that but it said
Try deleting the policies and re-run. Make sure the hosts file you specified is not empty
Now I have this problem
Success, thanks so much
Success, thanks so much
No problem, glad it's working now.
But when I try Steven Black list. It failed
I think this has to do with a connection error. Try deleting and re-running it. I think that fixed it for me when I encountered a similar error.
I will try
I think this has to do with a connection error. Try deleting and re-running it. I think that fixed it for me when I encountered a similar error.
It's true
I use this by Github Action. It's easier
I make this to use Github Action run your code and easier on Termux
I installed cloudflare-gateway-adblocking on pypi but when I use command cloudflare-gateway-adblocking --account-id , it said Error