Top Related Projects
🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.
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. ⚡🔒
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:
- Visit the vokins/yhosts GitHub repository.
- Click on the "Raw" button to view the raw content of the hosts file.
- Copy the entire contents of the hosts file.
- Locate the hosts file on your operating system:
- Windows:
C:\Windows\System32\drivers\etc\hosts
- macOS/Linux:
/etc/hosts
- Windows:
- Open the hosts file with a text editor (e.g., Notepad, TextEdit, or a terminal-based editor like
vim
ornano
) with administrative/root privileges. - Paste the contents of the
vokins/yhosts
hosts file at the end of the existing content. - Save the file and close the text editor.
- 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
- Windows: Open an elevated command prompt and run
- 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
🔒 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.
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 uses127.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
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
- Blocking method: 1Hosts uses 0.0.0.0, while yhosts uses 127.0.0.1
- Scope: 1Hosts offers more extensive blocking lists
- Update frequency: 1Hosts is updated more regularly
- Language focus: yhosts has a stronger emphasis on Chinese websites
- 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 designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
以åæ´æ°ä¼ç±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 åè®®å¼æºï¼
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Top Related Projects
🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.
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. ⚡🔒
World's most advanced DNS filter-/blocklists!
Block spying and tracking on Windows
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot