Convert Figma logo to code with AI

neoFelhz logoneohosts

自由·负责·克制 去广告 Hosts 项目

1,774
136
1,774
31

Top Related Projects

26,451

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

7,036

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 neoFelhz/neohosts repository is a project that provides a comprehensive hosts file for blocking various types of unwanted content, including advertisements, trackers, and malicious websites. The hosts file is regularly updated and maintained to ensure the best possible protection against online threats.

Pros

  • Comprehensive Coverage: The hosts file covers a wide range of unwanted content, including advertisements, trackers, and malicious websites, providing a robust defense against various online threats.
  • Regular Updates: The project is actively maintained, with frequent updates to the hosts file to ensure it remains effective against the latest threats.
  • Community-Driven: The project is open-source and community-driven, allowing users to contribute and provide feedback to improve the overall quality of the hosts file.
  • 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.

Cons

  • Potential Compatibility Issues: The hosts file may occasionally cause compatibility issues with certain websites or applications, which could lead to unexpected behavior or functionality problems.
  • Potential Performance Impact: Depending on the number of entries in the hosts file, it may have a slight impact on system performance, particularly on older or less powerful devices.
  • Requires Manual Updates: While the project is actively maintained, users are responsible for manually updating the hosts file to ensure they have the latest protection.
  • Limited Customization: The hosts file provides a pre-configured set of entries, which may not be suitable for all users' specific needs or preferences.

Getting Started

To use the neoFelhz/neohosts project, follow these steps:

  1. Download the latest version of the hosts file from the project's GitHub repository.
  2. Locate the hosts file on your operating system:
    • Windows: C:\Windows\System32\drivers\etc\hosts
    • macOS/Linux: /etc/hosts
  3. Open the hosts file with a text editor (e.g., Notepad, TextEdit, or a terminal-based editor like Vim or Nano).
  4. Replace the existing content of the hosts file with the content of the downloaded file.
  5. Save the changes and close the text editor.
  6. 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
  7. Restart your web browser or device to ensure the changes are applied.

That's it! You've successfully set up the neoFelhz/neohosts hosts file on your system. Remember to periodically check for updates and repeat the process to ensure you have the latest protection.

Competitor Comparisons

26,451

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

Pros of hosts

  • Larger community and more frequent updates
  • Offers multiple variants (e.g., family-friendly, gambling-focused)
  • Extensive documentation and clear contribution guidelines

Cons of hosts

  • May include more false positives due to broader blocking approach
  • Larger file size, which could impact performance on some systems
  • Less focus on region-specific (e.g., Chinese) ad domains

Code Comparison

hosts:

0.0.0.0 example.com
0.0.0.0 ads.example.com
0.0.0.0 tracking.example.com

neohosts:

127.0.0.1 example.com
127.0.0.1 ads.example.com
127.0.0.1 tracking.example.com

Both repositories provide hosts files for blocking unwanted domains, but they have different approaches and target audiences. hosts is more comprehensive and widely used, offering various flavors for different needs. It's regularly updated and has a larger community, but may include more false positives.

neohosts focuses more on Chinese websites and ad domains, making it potentially more effective for users in China or those accessing Chinese content. It has a smaller file size and may have fewer false positives, but updates less frequently and has a smaller community.

The code comparison shows that hosts uses 0.0.0.0 as the blocking IP, while neohosts uses 127.0.0.1. Both approaches effectively block the domains, but 0.0.0.0 may be slightly faster in some systems.

7,036

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

Pros of AdAway

  • Open-source Android app for blocking ads system-wide
  • Supports custom host files and whitelist/blacklist functionality
  • Regular updates and active community support

Cons of AdAway

  • Requires root access on Android devices
  • May interfere with some apps that rely on ad revenue
  • Limited to Android platform only

Code Comparison

AdAway (Java):

private void applyHostsFile() {
    CommandCapture command = new CommandCapture(0, "mount -o rw,remount /system",
            "cp " + Constants.HOSTS_FILE + " " + Constants.ANDROID_HOSTS_FILE,
            "chmod 644 " + Constants.ANDROID_HOSTS_FILE);
    try {
        RootTools.getShell(true).add(command).waitForFinish();
    } catch (Exception e) {
        Log.e(TAG, "Error applying hosts file", e);
    }
}

neohosts (Shell script):

#!/bin/sh
curl -o hosts.txt https://raw.githubusercontent.com/neoFelhz/neohosts/data/basic/hosts.txt
cat hosts.txt >> /etc/hosts
rm hosts.txt

Summary

AdAway is a comprehensive ad-blocking solution for Android, offering system-wide protection and customization options. However, it requires root access and is limited to Android devices. neohosts, on the other hand, is a simpler hosts file-based solution that can be used across multiple platforms but lacks the advanced features and user interface of AdAway.

Pros of GoodbyeAds

  • More comprehensive ad-blocking lists, including specific lists for apps and services
  • Regular updates and active maintenance
  • Includes a whitelist for allowing certain domains

Cons of GoodbyeAds

  • May be overly aggressive, potentially blocking some non-ad content
  • Larger file size due to more extensive lists
  • Might require more frequent updates to stay current

Code Comparison

GoodbyeAds:

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

neohosts:

127.0.0.1 ad.example.com
127.0.0.1 analytics.example.com

Summary

GoodbyeAds offers a more comprehensive ad-blocking solution with regular updates and specific lists for various platforms. However, it may be more aggressive in its blocking and require more frequent updates. neohosts provides a simpler, more lightweight approach but may not cover as many ad domains. The code comparison shows that GoodbyeAds uses the 0.0.0.0 IP address for blocking, while neohosts uses 127.0.0.1. GoodbyeAds also includes more entries in its lists. Users should choose based on their specific needs and tolerance for potential false positives.

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

Pros of blacklist

  • Offers multiple lists for different purposes (adware, malware, tracking)
  • Includes a whitelist for commonly false-positive domains
  • Provides detailed installation instructions for various platforms

Cons of blacklist

  • Less frequent updates compared to neohosts
  • Smaller community and fewer contributors
  • Limited focus on Chinese websites and services

Code Comparison

blacklist:

0.0.0.0 ads.example.com
0.0.0.0 tracking.example.com
0.0.0.0 malware.example.com

neohosts:

127.0.0.1 ads.example.com
127.0.0.1 tracking.example.com
127.0.0.1 malware.example.com

Additional Notes

  • neohosts focuses on Chinese websites and services, making it more suitable for users in China or those accessing Chinese content
  • blacklist provides a more general-purpose blocking solution for global users
  • Both projects use hosts file format for blocking, but neohosts uses 127.0.0.1 as the blocking IP, while blacklist uses 0.0.0.0
  • neohosts has a larger number of blocked domains, potentially offering more comprehensive protection
  • blacklist's separate lists allow for more granular control over blocked content
1,485

World's most advanced DNS filter-/blocklists!

Pros of 1Hosts

  • Offers multiple filter lists for different levels of protection
  • Includes a Lite version for less aggressive blocking
  • Regularly updated with community contributions

Cons of 1Hosts

  • May cause more false positives due to aggressive blocking
  • Less focus on region-specific blocking (e.g., China-specific ads)
  • Configuration might be more complex for some users

Code Comparison

1Hosts:

0.0.0.0 example.com
0.0.0.0 ads.example.com
0.0.0.0 tracking.example.com

neohosts:

127.0.0.1 example.com
127.0.0.1 ads.example.com
127.0.0.1 tracking.example.com

Key Differences

  • 1Hosts uses 0.0.0.0 as the blocking IP, while neohosts uses 127.0.0.1
  • neohosts focuses more on Chinese websites and services
  • 1Hosts offers different versions (Lite, Pro, Xtra) for varying levels of protection
  • neohosts includes a whitelist feature for commonly used services

Both projects aim to block ads and tracking domains, but they cater to slightly different user needs and preferences. 1Hosts provides more granular control over blocking levels, while neohosts specializes in region-specific blocking, particularly for Chinese users.

Block spying and tracking on Windows

Pros of WindowsSpyBlocker

  • Specifically designed for Windows, offering targeted protection against Microsoft telemetry and data collection
  • Provides multiple blocking methods (hosts file, firewall rules, and BITS)
  • Includes a user-friendly interface for easy management of blocking rules

Cons of WindowsSpyBlocker

  • Limited to Windows operating systems, lacking support for other platforms
  • Focuses primarily on Microsoft-related domains, potentially missing other tracking sources
  • May require more frequent updates to keep up with changes in Windows telemetry

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

neohosts (hosts file entry):

0.0.0.0 ad.doubleclick.net
0.0.0.0 analytics.google.com
0.0.0.0 pagead2.googlesyndication.com

While both projects aim to block unwanted connections, WindowsSpyBlocker focuses on Windows-specific domains, whereas neohosts covers a broader range of advertising and tracking domains across multiple platforms. WindowsSpyBlocker offers more comprehensive blocking methods for Windows users, but neohosts provides wider coverage for various operating systems and potential tracking sources.

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

logo

neoHosts

自由、负责、克制 的去广告 Hosts

Author Build Status License

Introduction 介绍

  • 自由:我们使用 MIT & SATA **自由协议**而不是 CC BY-NC-ND 这样的非自由协议,希望能够促进和帮助更多项目
  • 克制:我们保证不因个人喜好屏蔽非广告有关网站;我们会仔细研究和分析,我们不会随意屏蔽任何一个域名
  • 负责:我们不搞“捐赠才能反馈”、不搞 VIP 特权。所有用户都应该能免费、完整地使用本项目、自由地反馈问题

Download 下载

Basic Hosts

基础、克制的数据,推荐所有用户使用。

Full Hosts

包含全部数据,仅推荐强迫症使用。相比 Basic Hosts,Full Hosts 额外屏蔽了以下内容:

  • JS Miner 挖矿

  • 百度全家桶的全天候定位记录

  • 各类统计服务(仅屏蔽 JS、不屏蔽控制台)

  • 常见下载劫持

  • 360 和百度的部分软件下载

  • CNNIC 根证书劫持

  • 法轮功、ISIS、银河联邦等可能令人反感的激进宗教内容网站

  • AdGuardHome 兼容版

Basic Compatible Hosts

基于 Basic Hosts,广告域名会被定向至 127.0.0.1 而不是 0.0.0.0,兼容性更好。

Full Compatible Hosts

基于 Full Hosts,广告域名会被定向至 127.0.0.1 而不是 0.0.0.0,兼容性更好。

Basic Mikrotik

基于 Basic Hosts 的 Mikrotik 脚本,建议定期从源抓取并执行。

Full Mikrotik

基于 Full Hosts 的 Mikrotik 脚本,建议定期从源抓取并执行。

Docs 文档

neoHosts Wiki

neoHosts Wiki 使用 docsify.js 构建

Maintainer

neoHosts © Neko Dev Team & neoHosts Team, Released under the MIT License & SATA License.
Authored and maintained by neoFelhz with Neko Dev Team , neoHosts Team and the help from other contributors (list).

Friends 友情链接

  • neoFelhz's Blog - The main maintainer's blog.
  • ACL4SSR - A project which provide ACL for SSR, include gfwlist and ban AD.
  • GenHosts - A fork from neoHosts, using build tool written in Ruby.

License 许可证

本项目的 hosts,README,wiki 等资源基于 MIT 协议发布并增加了 SATA 协议。

当你使用了使用 SATA 的开源软件或文档的时候,在遵守基础许可证的前提下,你**必须**马不停蹄地给你所使用的开源项目 “点赞” ,比如在 GitHub 上 star,然后你**必须**感谢这个帮助了你的开源项目的作者,作者信息可以在许可证头部的版权声明部分找到。

本项目分发的所有 Hosts 和数据源,除另有说明外,均基于上述介绍的协议发布,具体请看分支下的 LICENSE。

此处的文字仅用于说明,条款以 LICENSE 文件中的内容为准。