< Back

Install-GCHostsFileBlockList

Mon Jan 13, 2020 8:06 pm

NAME Install-GCHostsFileBlockList



SYNOPSIS

Downloads a hosts file block list replacing or appending

it to the current hosts file.





SYNTAX

Install-GCHostsFileBlockList [[-Extension] <String>] [-Append] [<CommonParameters>]





DESCRIPTION

This cmdlet will download a hosts file block list from github

and replace or append the block list to the end of the

current hosts file.



The source of the block list is maintained by a Steven Black:

https://github.com/StevenBlack



The repository for the block list is located here:

https://github.com/StevenBlack/hosts



Type 'Get-Help Install-GCHostsFileBlockList -Online' for extra information.





PARAMETERS

-Extension <String>

Customizes the default Adware/Malware block list adding extra

unwanted domains.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Append [<SwitchParameter>]

Adds the block list host entries to the end of the

existing hosts file.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Int32





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>The following example installs the default Adware/Malware block list



with the addition of the FakeNews extension:



Install-GCHostFileBlockList -Extensions FakeNews











RELATED LINKS