4 ms·
I like the concept, but why does this map http addresses (http://server.com http://server.com) to ip addresses? Why not instead have a table of ips and domains
by iradik 15y ago
I like the concept, but why does this map http addresses (http://server.com http://server.com) to ip addresses? Why not instead have a table of ips and domains (like /etc/hosts) so you can then just sync the freedom.txt file into your hosts file? That's what the hosts file is designed for after all.
This has the added benefit of working with virtual hosting configurations where the browser has to pass the Host header to the server to get a web page.
- mvanveen 15y agoThe script grabs the domain of the uri in question, so it's effectively mapping the domain to the url. To answer your question more specifically, the freedom.txt format started in this thread: http://news.ycombinator.com/item?id=3498505 http://news.ycombinator.com/item?id=3498505 , so it links to the uri of a freedom.txt for historical reasons. /etc/hosts integration is in the works; you're the 2nd person to recommend it so far (the first being my roommate ;-) ). What's up now is just a quick hack to get momentum for the project in the meantime. If this takes off, the innovation will be social rather than technical, so I thought I'd spend 5 minutes to see if it's worthwhile. Thanks for the input! Edit: I'm working on /etc/hosts integration right now.
- Natsu 15y agoI know the web moves fast, but you got a good laugh out of me for calling something someone came up with in a thread yesterday "historical reasons" :)
- mvanveen 15y agoFair. Probably not the best wording on my part. For context, I've been in contact with the original poster and did not want to separate our efforts. This idea was suggested in the last thread, and I thought it was worth a try. Leveraging what's already out there seemed like a good idea.
- mvanveen 15y agoFollowed your advice and added (preliminary, beta) /etc/hosts support, thanks for the suggestion!