Home > Computer Tutorials > System Installation > Use hosts file to block software advertisements

Use hosts file to block software advertisements

WBOY
Release: 2024-01-29 13:27:05
forward
1072 people have browsed it

Users always worry about too many advertisements and poor user experience when using various software on their computers. The editor below will teach you a little trick to use the hosts file to block software advertisements. Hosts is a system file without an extension. , its function is to establish an associated "database" between some commonly used website domain names and their corresponding IP addresses. Friends only need to copy the code provided by the editor to achieve the purpose of removing advertisements.

Use hosts file to block software advertisements

How to use the hosts file to block software advertisements

1. First open the C drive and find hosts in the directory C:\Windows\System32\drivers\etc File

Use hosts file to block software advertisements

2. Drag hosts to the desktop and double-click to open

Use hosts file to block software advertisements

3. Then select "Notepad" mode Open this file and click "Confirm".

Use hosts file to block software advertisements

#4. After opening, paste the following files and save them to complete.

# localhost name resolution is handled within DNS itself.

# 127.0.0.1 localhost

# ::1 localhost

#YoukuGo to Advertisement

0.0.0.0 ad.api.3g.youku.com

#iQiyi to advertise

0.0.0.0 t7z.cupid.iqiyi.com

0.0.0.0 msg.71.am

#Sohu removes ads

0.0.0.0 agn.aty.sohu.com

#Tencent Video removes ads

0.0.0.0 livep.l.qq.com

0.0.0.0 lives.l.qq.com

#Tudou video to remove ads

0.0.0.0 ad.api .3g.tudou.com

#PPTV de-advertising

0.0.0.0 de.as.pptv.com

0.0.0.0 ex.as.pptv.com

#LeTV Remove Ads

0.0.0.0 apple.www.letv.com

0.0.0.0 ark.letv.com

0.0.0.0 dc.letv .com

0.0.0.0 g3.letv.cn

# Cool 6 Go to Ads

0.0.0.0 pic.fastapi.net

#Mango Go Advertising

0.0.0.0 x.da.hunantv.com

0.0.0.0 y.da.hunantv.com

#Watch ads every day

0.0.0.0 mi.gdt.qq.com

0.0.0.0 mobads.baidu.com

Different software uses different hosts to remove advertisements. It is recommended that you change it according to your own needs.

The above is the detailed content of Use hosts file to block software advertisements. For more information, please follow other related articles on the PHP Chinese website!

source:53xt.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template