t4rra / CCStopper

[Archived] Stops Adobe's pesky background apps and more 😉
GNU General Public License v3.0
1.06k stars 65 forks source link

[Bug]: HostBlock.ps1 doen't work if the hosts file is already populated #59

Closed azumukupoe closed 1 year ago

azumukupoe commented 1 year ago

What happened?

HostBlock.ps1 fails to work when hosts file already has lines of rules from added by https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate

Expected Result?

hosts file to be updated with the rules

Version?

v1.2.1

Windows Version?

No response

t4rra commented 1 year ago

Could you elaborate on "failed to work?" i.e nothing from CCStopper in the hosts file, a portion of the blocklist in the hosts file, etc.

Also make sure that the whole CCStopper zip is extracted and that you're running CCStopper.bat with admin privileges.

azumukupoe commented 1 year ago

I mean, it doesn't work as expected; hosts file won't update this has been an issue for me since I started using your script so it's unlikely that recent commits broke it

t4rra commented 1 year ago

Sorry for the late reply, but check the permissions of the hosts file. Make sure the 'administrators' group can read/write to the hosts file.

azumukupoe commented 1 year ago

yeah, had to run the script as admin