4 ms·
How do you implement this? I am a relatively new programmer and would love to to implement this on my own phone/ workspace
by ninesnines 5y ago
How do you implement this? I am a relatively new programmer and would love to to implement this on my own phone/ workspace
- sodality2 5y agoIt's essentially just an AdGuard Home installation on my VPS, which is a DNS server that all of my devices use as the DNS server. I then added all the blocked URLs and blocked them all in the web interface, and viewed the network request that it made in the browser console. Then, I unblocked them. For each one of these saved network requests, I saved the corresponding "copy as CURL" command. When the button is pressed, the "blocked" command is called; after waiting 7200 seconds, the "unblock" command is called. This just calls the server to not resolve those URLs.