[Bug]: HostBlock.ps1 doen't work if the hosts file is already populated
azumukupoe opened this issue · 4 comments
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
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.
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
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.
yeah, had to run the script as admin