New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use Apply allowed hosts option when adding a hosts source? #2529
Comments
Hi @zgfg Thanks for the detailed bug report and the test data! |
Thank you a lot @PerfectSlayer for this new implementation👍👍👍 Do Allowed files also need timestamp (to avoid update problems as with Codeberg domain, see #2570)? In that case, my example: can be also tested from the alternative URL: Although, it could be valuable if your timestamp fix for githubusercontent.com address could be also applied to the github.com raw form of user addresses |
I also hope @PerfectSlayer that this new implementation will also work for local (on the phone) Allowed files - hence you could also close then #2185 |
Yes, allowed files also need timestamp to define if they need update. Using the url: https://raw.githubusercontent.com/zgfg/etc/master/myAllowedList.txt should work well. It will also work with the file storage. In fact, it is the same code that check and fetch blocked list and allowed list. |
Thanks @PerfectSlayer. Regarding to github.com vs githubusercontent.com it must be easier than I originally thought - as analyzied in today's new #2605, Github dynamically redirects itself to githubusercontent.com whenever fetching the file from github.com. Hence you could IMO just extend your logic for timestamps for files from githubusercontent.com (where it works with no issues) also to files that will be dynamically redirected to githubusercontent.com on each fetch (currently they have issues like 'Codeberg' files as explained in #2605) . The same logic should work then both for Blocked and Allowed lists (no matter if their URLs are provided in github.com or githubusercontent.com form) |
That is not issue. AdAway downloads hosts source as resource from http servers. The github.com domain is for end users and is not a static resource hosting (I am not even sure it is allowed from the GitHub's Terms)
Do you understand this point of view? |
@PerfectSlayer - full screenrecording Just regularly using Github, regularly taking the link from Raw (long press and Get link address), pasting to AdAway, successfully applying but getting Failed to download (Internet connection problem): https://mega.nz/file/YxMhlI7D#pKDj0mMDx0aagsAIjvGqNNPBR4y-VRC8AxFAEQCcSSY |
The internet connection problem when checking for update is fixed for the next release. But it won't fix the fact the URL you use does not serve a |
Let's keep this ticket closed - because the allowed list functionality is fixed. |
I want to add a list of allowed hosts, for example:
api.micloud.xiaomi.net
sgpac.account.xiaomi.com
connect.rom.miui.com
update.miui.com
zgwlc.zagreb.hr
magisk-modules-repo.github.io
Instead of manually adding one by one to the Allowed list, or adding them to the adaway-backup.json and to restore from, I have created a file myAllowedList.txt and uploaded that file to my Github project:
In AdAway, Hosts sources I take + and add its URL:
https://github.com/zgfg/Etc/raw/main/myAllowedList.txt
I select Apply allowed hosts because I want to allow those hosts, not to block them:
I apply the change, in Hosts sources it looks ok but given hosts were not added as Allowed:
AdAway 5.3.0, root (Magisk Canary 21407) om Xiaomi Mi 9T, Xiaomi.eu 21.1.28 (A11)
But it doesn't matter (phone, Magisk version), the same with no-root mode (Huawei Mate 9, AdAway 5.3.0)
This is actually about the similar problem reported at that time for the local Allowed.List.txt file (Content type) #2185.
Here it's now for the URL type
The text was updated successfully, but these errors were encountered: