{"action":"created","issue":{"url":"https://api.github.com/repos/Trellmor/bind-adblock/issues/9","repository_url":"https://api.github.com/repos/Trellmor/bind-adblock","labels_url":"https://api.github.com/repos/Trellmor/bind-adblock/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Trellmor/bind-adblock/issues/9/comments","events_url":"https://api.github.com/repos/Trellmor/bind-adblock/issues/9/events","html_url":"https://github.com/Trellmor/bind-adblock/issues/9","id":328860844,"node_id":"MDU6SXNzdWUzMjg4NjA4NDQ=","number":9,"title":"Add custom domains to blacklist","user":{"login":"dilworks","id":3221358,"node_id":"MDQ6VXNlcjMyMjEzNTg=","avatar_url":"https://avatars0.githubusercontent.com/u/3221358?v=4","gravatar_id":"","url":"https://api.github.com/users/dilworks","html_url":"https://github.com/dilworks","followers_url":"https://api.github.com/users/dilworks/followers","following_url":"https://api.github.com/users/dilworks/following{/other_user}","gists_url":"https://api.github.com/users/dilworks/gists{/gist_id}","starred_url":"https://api.github.com/users/dilworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilworks/subscriptions","organizations_url":"https://api.github.com/users/dilworks/orgs","repos_url":"https://api.github.com/users/dilworks/repos","events_url":"https://api.github.com/users/dilworks/events{/privacy}","received_events_url":"https://api.github.com/users/dilworks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-03T20:48:45Z","updated_at":"2018-06-07T13:27:57Z","closed_at":null,"author_association":"NONE","body":"First things first: THANKS for this project! I refuse to install adblockers on my clients (have so many devices at home it quickly becomes a maintenance nightmare to keep everything properly configured and up to date), so blocking ads at the DNS level makes a lot of sense to me.\r\n\r\nAnyway, I've noticed that you document how to create a whitelist. However, what I want to know is how to do the inverse: aside of blocking ads and trackers, I want to add extra domains to the blocklist - I want to block Facebook and friends, and currently I achieve that using a custom zone for redirecting the facebook.com zone to a bogus IP inside my LAN. Is there a way to achieve the same with this script?"},"comment":{"url":"https://api.github.com/repos/Trellmor/bind-adblock/issues/comments/395419871","html_url":"https://github.com/Trellmor/bind-adblock/issues/9#issuecomment-395419871","issue_url":"https://api.github.com/repos/Trellmor/bind-adblock/issues/9","id":395419871,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTQxOTg3MQ==","user":{"login":"dilworks","id":3221358,"node_id":"MDQ6VXNlcjMyMjEzNTg=","avatar_url":"https://avatars0.githubusercontent.com/u/3221358?v=4","gravatar_id":"","url":"https://api.github.com/users/dilworks","html_url":"https://github.com/dilworks","followers_url":"https://api.github.com/users/dilworks/followers","following_url":"https://api.github.com/users/dilworks/following{/other_user}","gists_url":"https://api.github.com/users/dilworks/gists{/gist_id}","starred_url":"https://api.github.com/users/dilworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilworks/subscriptions","organizations_url":"https://api.github.com/users/dilworks/orgs","repos_url":"https://api.github.com/users/dilworks/repos","events_url":"https://api.github.com/users/dilworks/events{/privacy}","received_events_url":"https://api.github.com/users/dilworks/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T13:27:57Z","updated_at":"2018-06-07T13:27:57Z","author_association":"NONE","body":"Thanks for the tip!\r\n\r\nI've migrated my solution from a custom zone (basically \"let's pretend I'm the authority for facebook.com, so redirect it to my pixelserver\") to this - I ended appending the blocklist entries (after being converted by your awk oneliner) to my main zone (that's because my routerbox is running some ancient Debian version with BIND 9.8, new enough for having RPZ support, but old enough for having not-so-great performance with more than one RPZ zone. And yes, I'm planning to upgrade Soon™).\r\n\r\nAnyway, getting rid of ads PLUS Facebook feels great~"}}
{"actor":{"display_login":"dilworks"}}