Ok, I will check that too, I think the router way is more easy, my router have the option to block the urls listed there.
Actually I was looking for the urls but I couldn't find them, I thinks is more secure than the DNS, the github article show all the urls, Thanks for the info.