Cross-platform utility to facilitate blocking domain names using the hosts file.
For option #2 of the menu, please provide a file in the following format:
www.yahoo.com
facebook.com
...
Using Unix-based Operating Systems:
g++ -std=c++14 main.cpp dirtywork.hpp hosts.hpp hosts.cpp
Using Microsoft Windows:
-
Create a Visual C++ Win32 Project.
-
Choose Console application.
-
Add main.cpp, dirtywork.hpp, hosts.hpp, and hosts.cpp to the project.
-
Ctrl + F5.
-
VS 2015 --> Project --> Properties --> Linker --> Manifest file --> UAC Execution Level
-
Set UAC Execution Level to "requireAdministrator (/level='requireAdministrator')"