Hello friends.
I am trying to make an internet blacklist.
I've been looking this up, but can't find anything on the internet.
What are the advantages of editing the hosts file, as opposed to making some explicit website blocker?
Hello friends.
I am trying to make an internet blacklist.
I've been looking this up, but can't find anything on the internet.
What are the advantages of editing the hosts file, as opposed to making some explicit website blocker?
If by what you mean "explicit website blocker" is programmatically blocking sites in your list; then, there goes the cons. I can't thought of any other pros except you have more control or options on this one.
For manually editing the host file, it's a systemwide approach, all users will share the same hostfile and all website being accessed will be blocked by the hostfile.
Here's a summary of CONS and PROS, assuming this one's in the context of a dedicated server, not virtual:
PROS
CONS
PROS
CONS
Hope that enlightens and helps you.
It's "programmatically blocking websites"
Thanks.
I've started manually editing the hostfile (very simple job) to prevent access to like www.ebay.com.
However, I've found out that my browsers doesn't repond to the host file changes right away; it takes time. E.g. If I edit the hosts file to prevent access to eBay, it takes like 2 minutes before this takes effect; I can still access eBay for 2 minutes, and not right away.
Why does this happen? I need the browser to respond right away, as soon as the hosts file changes.
What alternatives are there to block access to certain websites, besides editing the hosts file? -Make a proxy server? (I don't know where to start with that one, please give me pointers!)
Thank you.
You can have to flush it to get the changes.
in Windows, open your command line then enter this ipconfig /flushdns
if you're linux: service nscd reload
You can block it in your router, if you have a GUI panel, it'll be a lot easier. Mostly, it's in the security panel, or administration. The guys in the networking forum will be able to help you a lot on this one. DW Networking Forum
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.