开发者

Hosts file Redirect website to about:blank

开发者 https://www.devze.com 2023-02-10 01:19 出处:网络
I was just curious, how do I redirect a webaddress to a blank page using the windows Hosts file? All I know now is this 127.0.0.1 googleads.g.doubleclick.n开发者_运维知识库et. So how do I redirect the

I was just curious, how do I redirect a webaddress to a blank page using the windows Hosts file? All I know now is this 127.0.0.1 googleads.g.doubleclick.n开发者_运维知识库et. So how do I redirect the address to a Blank page?

thanks


You can't.

The HOSTS file assists in name resolution—converting a hostname to an IP address.
about:blank is a special URI that has nothing to do with name resolution.

You could run a webserver that sends 301 redirects to about:blank (or just sends blank pages), then add that server's IP address to the HOSTS file.

0

精彩评论

暂无评论...
验证码 换一张
取 消