You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been too lazy to learn Python. I've made a 2 line PowerShell script to update hosts. Hosts are not updated very often. So the manual script is just fine. PowerShell works on Windows 7 - 11. Although hosts are better to use on Linux or push to blacklist in a router via CLI. My script simply takes two files and join unique lines from them ignoring comments, thus filtering duplicates.
I give link as I should update script. https://github.com/ManlyElectronics/hosts
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been too lazy to learn Python. I've made a 2 line PowerShell script to update hosts. Hosts are not updated very often. So the manual script is just fine. PowerShell works on Windows 7 - 11. Although hosts are better to use on Linux or push to blacklist in a router via CLI. My script simply takes two files and join unique lines from them ignoring comments, thus filtering duplicates.
I give link as I should update script. https://github.com/ManlyElectronics/hosts
Beta Was this translation helpful? Give feedback.
All reactions