Convert Figma logo to code with AI

vokins logoyhosts

AD hosts爱好群,群号:201973909;无限期暂停更新。劝君更尽一杯酒,西出阳关无故人。莫愁前路无知己,天下谁人不识君。

1,672
515
1,672
3

Top Related Projects

26,670

🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.

7,155

AdAway is a free and open source ad blocker for Android.

Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒

1,485

World's most advanced DNS filter-/blocklists!

Block spying and tracking on Windows

Quick Overview

The vokins/yhosts repository is a collection of hosts files that aim to block various types of unwanted content, such as advertisements, trackers, and malicious websites. The project provides a comprehensive and regularly updated hosts file that can be used to enhance online privacy and security.

Pros

  • Comprehensive Content Blocking: The hosts file covers a wide range of unwanted content, including advertisements, trackers, and malicious websites, providing a robust solution for content blocking.
  • Regularly Updated: The project is actively maintained, with frequent updates to the hosts file to ensure it remains effective against the latest threats.
  • Cross-Platform Compatibility: The hosts file can be used on various operating systems, including Windows, macOS, and Linux, making it accessible to a wide range of users.
  • Open-Source and Community-Driven: The project is open-source, allowing users to contribute and collaborate on improving the hosts file.

Cons

  • Potential Compatibility Issues: Depending on the user's system configuration and the software they use, the hosts file may cause compatibility issues or interfere with certain applications or services.
  • Potential Performance Impact: Depending on the size of the hosts file and the number of entries, it may have a slight impact on system performance, especially on older or less powerful devices.
  • Requires Manual Updates: While the project is regularly updated, users are responsible for manually updating the hosts file to ensure they have the latest version, which may be inconvenient for some users.
  • Limited Customization Options: The hosts file provides a pre-configured set of entries, and users have limited options to customize the content blocking rules to their specific needs.

Getting Started

To use the vokins/yhosts hosts file, follow these steps:

  1. Visit the vokins/yhosts GitHub repository.
  2. Click on the "Raw" button to view the raw content of the hosts file.
  3. Copy the entire contents of the hosts file.
  4. Locate the hosts file on your operating system:
    • Windows: C:\Windows\System32\drivers\etc\hosts
    • macOS/Linux: /etc/hosts
  5. Open the hosts file with a text editor (e.g., Notepad, TextEdit, or a terminal-based editor like vim or nano) with administrative/root privileges.
  6. Paste the contents of the vokins/yhosts hosts file at the end of the existing content.
  7. Save the file and close the text editor.
  8. Flush your DNS cache to ensure the changes take effect:
    • Windows: Open an elevated command prompt and run ipconfig /flushdns
    • macOS/Linux: Open a terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  9. Restart your web browser or device to ensure the content blocking is effective.

Remember to periodically check for updates to the vokins/yhosts hosts file and repeat the update process to keep your content blocking up-to-date.

Competitor Comparisons

26,670

🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.

Pros of hosts

  • More comprehensive and regularly updated blocklist
  • Offers multiple flavors (e.g., social, gambling, porn) for customization
  • Larger community and more frequent contributions

Cons of hosts

  • May block some legitimate domains, requiring more manual whitelisting
  • Larger file size, which could impact performance on low-end devices
  • More complex structure, potentially harder for beginners to modify

Code Comparison

hosts:

0.0.0.0 1493361689.rsc.cdn77.org
0.0.0.0 30-day-change.com
0.0.0.0 360safe.com
0.0.0.0 3cinteractive.com
0.0.0.0 4dle.info

yhosts:

127.0.0.1 analytics.126.net
127.0.0.1 img1.126.net
127.0.0.1 img2.126.net
127.0.0.1 m.analytics.126.net
127.0.0.1 stat.ws.126.net

The hosts repository uses 0.0.0.0 as the blocking IP, while yhosts uses 127.0.0.1. hosts includes a wider variety of domains, whereas yhosts focuses more on Chinese websites and services.

Both projects aim to block unwanted content and improve privacy, but hosts offers a more extensive and customizable solution for a global audience. yhosts may be more suitable for users primarily concerned with Chinese-specific domains and advertisements.

7,155

AdAway is a free and open source ad blocker for Android.

Pros of AdAway

  • Open-source Android ad-blocking application with a user-friendly interface
  • Supports both rooted and non-rooted devices through VPN-based blocking
  • Regularly updated with community contributions and support

Cons of AdAway

  • Primarily focused on Android platform, limiting its use on other devices
  • Requires more system resources due to its app-based approach
  • May interfere with some apps' functionality due to aggressive blocking

Code Comparison

AdAway (Java):

private void applyHostsFile() {
    CommandExecutor.Result result = runScriptAsRoot(Constants.SCRIPT_FILE_PATH);
    if (!result.success) {
        Log.e(Constants.TAG, "Error applying hosts file: " + result.error);
    }
}

yhosts (Hosts file format):

127.0.0.1 localhost
::1 localhost
0.0.0.0 ad.example.com
0.0.0.0 tracker.example.com

Key Differences

  • AdAway is a full-fledged Android application, while yhosts is a hosts file repository
  • yhosts can be used across multiple platforms, but requires manual implementation
  • AdAway offers more features and customization options for Android users
  • yhosts is lighter on system resources but less user-friendly for non-technical users

Pros of GoodbyeAds

  • More comprehensive ad-blocking lists, including mobile-specific ads
  • Regular updates and active maintenance
  • Supports multiple platforms and ad-blocking methods

Cons of GoodbyeAds

  • May be overly aggressive, potentially blocking some non-ad content
  • Larger file size, which could impact performance on low-end devices
  • Less focus on Chinese websites and services

Code Comparison

GoodbyeAds:

0.0.0.0 ad.doubleclick.net
0.0.0.0 googleads.g.doubleclick.net
0.0.0.0 pagead2.googlesyndication.com
0.0.0.0 ads.google.com
0.0.0.0 adservice.google.com

yhosts:

127.0.0.1 ad.doubleclick.net
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 ads.google.com
127.0.0.1 adservice.google.com

The main difference in the code is the use of 0.0.0.0 in GoodbyeAds versus 127.0.0.1 in yhosts. Both achieve the same result of blocking ads, but GoodbyeAds' approach may be slightly more efficient.

yhosts focuses more on Chinese websites and services, making it potentially more effective for users in China or those accessing Chinese content. However, GoodbyeAds offers a broader range of ad-blocking capabilities across various platforms and regions.

Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒

Pros of blacklist

  • More frequently updated, with regular commits and maintenance
  • Broader coverage of ad domains across multiple categories
  • Includes separate lists for different purposes (e.g., Facebook, porn, gambling)

Cons of blacklist

  • Less focused on Chinese-specific ad domains
  • May require more manual configuration for specific use cases
  • Potentially higher risk of false positives due to broader coverage

Code comparison

blacklist:

0.0.0.0 ads.facebook.com
0.0.0.0 an.facebook.com
0.0.0.0 pixel.facebook.com

yhosts:

127.0.0.1 ad.xiaomi.com
127.0.0.1 ad.mi.com
127.0.0.1 ad.intl.xiaomi.com

Key differences

  • blacklist uses 0.0.0.0 as the blocking IP, while yhosts uses 127.0.0.1
  • yhosts focuses more on Chinese tech companies and services
  • blacklist provides more granular lists for specific purposes

Use cases

  • blacklist: Better for users seeking comprehensive ad-blocking across various platforms
  • yhosts: More suitable for users primarily concerned with Chinese ad networks and tracking

Community and support

  • blacklist: Larger community with more contributors and regular updates
  • yhosts: Smaller, more focused community with emphasis on Chinese internet ecosystem
1,485

World's most advanced DNS filter-/blocklists!

Pros of 1Hosts

  • More comprehensive blocking lists with multiple formats (Lite, Pro, Xtra)
  • Regular updates and active maintenance
  • Cross-platform compatibility (Android, iOS, Windows, macOS, Linux)

Cons of 1Hosts

  • May cause over-blocking for some users
  • Requires more frequent updates due to its extensive nature
  • Potentially higher impact on system resources

Code Comparison

1Hosts:

0.0.0.0 ad.example.com
0.0.0.0 tracker.example.com
0.0.0.0 analytics.example.com

yhosts:

127.0.0.1 ad.example.com
127.0.0.1 tracker.example.com
# analytics.example.com

Key Differences

  1. Blocking method: 1Hosts uses 0.0.0.0, while yhosts uses 127.0.0.1
  2. Scope: 1Hosts offers more extensive blocking lists
  3. Update frequency: 1Hosts is updated more regularly
  4. Language focus: yhosts has a stronger emphasis on Chinese websites
  5. Community: 1Hosts has a larger and more active community

Use Cases

  • 1Hosts: Ideal for users seeking comprehensive, multi-platform ad-blocking
  • yhosts: Better suited for Chinese users or those preferring a lighter approach

Conclusion

Both projects aim to block ads and trackers, but 1Hosts offers a more extensive and regularly updated solution across multiple platforms. yhosts may be preferable for users focused on Chinese websites or those seeking a simpler blocking approach.

Block spying and tracking on Windows

Pros of WindowsSpyBlocker

  • Specifically targets Windows telemetry and privacy concerns
  • Provides multiple blocking methods (hosts file, firewall rules, etc.)
  • Regularly updated with new telemetry endpoints

Cons of WindowsSpyBlocker

  • Limited to Windows platform
  • May interfere with some legitimate Windows services
  • Requires more technical knowledge to implement effectively

Code Comparison

WindowsSpyBlocker (hosts file entry):

0.0.0.0 vortex.data.microsoft.com
0.0.0.0 settings-win.data.microsoft.com
0.0.0.0 watson.telemetry.microsoft.com

yhosts (hosts file entry):

127.0.0.1 ad.12306.cn
127.0.0.1 ads.adadapted.com
127.0.0.1 adservice.google.com

Summary

WindowsSpyBlocker focuses on blocking Windows-specific telemetry and tracking, offering multiple methods for implementation. It's regularly updated but requires more technical expertise and may impact some Windows functionalities. yhosts, on the other hand, is a more general-purpose hosts file that blocks a wide range of ad and tracking domains across platforms. While less specialized, yhosts is simpler to implement and less likely to interfere with system operations.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

以后更新会由VeleSila接手更新

https://github.com/VeleSila/yhosts

只保留了hosts.txt和hosts。按需自提

Since 2009-06-06 - 2020-04-18

之前捐助过的人可以联系我退费。Q群现在直接可以进。

yhosts

主观且不好用 的 hosts文件

下载或使用本项目即视为同意以下使用条款。

  • 上网是因为兴趣和乐趣走到一起,互相交流和学习。毕竟大家都有自己的生活,祝你们身体健康,事事顺意。
  • 这个世界离了谁都行,你不欠我的,我也不欠你的。希望互相尊重。
  • 此项目仅限于个人研究,
  • 未经作者或维护小组同意,不得擅自用于商业活动或用于其他公共项目(包括但不限于嵌入APP,浏览器等)。
  • 不得违反国家相关法律法规。
  • 请于测试后24小时内删除。

反馈问题请看这里

有问题请先看Wiki

需要特别感谢的人

本项目主体部分(包括但不限于txt和css文件)使用 署名-非商业性使用-禁止演绎 CC BY-NC-ND 协议开源, Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.