Re-Malwack

ZG089GPL-3.0活跃维护

基于 hosts 和 DNS 的安卓广告拦截套件,支持 root(Magisk/KernelSU 模块)与非 root 两种部署方式,帮你在系统层面屏蔽广告和追踪域名。

A fully-fledged adblock root/no-root suite. Contains all your needs ✨

v8.2发布于 2026-04-01 18:03 UTC491star32fork同步于 2026-11-07 07:34 UTC

怎么上手

由 README 提炼,执行前请确认
su -c rmlwk --update-hosts
硬件要求按 README 说明

README 未说明;面向安卓设备,root 方案需 Magisk/APatch/KernelSU,免 root 可用本地 VPN 类应用加载其 hosts 源

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

安卓端 root/免 root 广告拦截套件,通过 hosts 屏蔽广告、恶意软件与追踪器

基于 hosts 和 DNS 的安卓广告拦截套件,支持 root(Magisk/KernelSU 模块)与非 root 两种部署方式,帮你在系统层面屏蔽广告和追踪域名。

核心能力

  • 用系统 hosts 文件无系统化屏蔽广告与恶意域名
  • 支持 Magisk、APatch、KernelSU 及变体
  • 提供 WebUI 与 rmlwk 终端命令管理黑白名单
  • 内置多档 hosts 配置档并按设备资源自动选择
  • 可暂停/恢复拦截并查询域名是否被屏蔽

容易踩的坑

不要与其他广告拦截模块或应用(如 AdAway、Magisk 内置 systemless hosts)同时使用;Chrome 等浏览器不生效时需在 KSU 管理器中关闭该应用的 Umount modules;仅接受 hosts 格式的广告拦截文件,其他格式不支持

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v8.2
  1. v8.2v8.2 - Castle of Protection最新正式版2026-04-01 · 2026-04-01 18:03 UTC

    Bug Fixes

    Core

    • Fixed idle protection status handling (the stage after un-idling)
    • Fixed emoji placement behind "Profile" text

    WebUI

    • Fixed logo rendering faliure issue that caused WebUI failing to load

    General Changes

    Code Quality & Maintenance

    • Create counts directory for storing blocked entries counts when running service.sh

    🌐 Community

    Telegram Support group Discord Server XDA Support thread Projects Channel on Telegram


    ☕ Support Development

    Donation

  2. v8.1v8.1 - TheInfinity2026-03-29 · 2026-03-29 16:16 UTC
    查看更新说明

    (This release contains lots of bug fixes that existed in v8. Sorry for the inconveinces.)

    Bug Fixes

    Core

    • Fixed profile status not being refreshed
    • Fixed possible visual WebUI issue caused by backend script error
    • Fixed domain URL redirect in link redirect feature in WebUI
    • Fixed protection idle status logic detection
    • Fixed profile parsing into config

    Features

    Scripts

    • Better profile switching logic: Added consideration to prevent re-switching profile to custom when modifying host sources while custom profile is already selected

    UX

    • Added ⚙️ icon before "Profile" in module status message for better visual indication

    General Changes

    Code Quality & Maintenance

    • Better profile handling in config file (preventing duplicated entries)
    • Improved module action script cleanup
    • Improved version badge display in module banner

    Workflow & CI/CD

    • Added KernelSU module repository sync workflow (Still WIP for now)
    • Small adjustment to release workflow for version naming in Telegram projects channel

    🌐 Community

    Telegram Support group Discord Server XDA Support thread Projects Channel on Telegram


    ☕ Support Development

    Donation

  3. v8V8 - ForeverRising!2026-03-28 · 2026-03-28 16:41 UTC
    查看更新说明

    Bug Fixes

    Scripts

    • Fixed missing auto-update handler that was accidentally removed
    • Fixed cache hosts file name pattern issues
    • Fixed trackers brand-specific hosts not being applied
    • Fixed multiple logical bugs related to hosts update process
    • Fixed whitelist handling and entries not being returned properly
    • Fixed social whitelist being applied when it shouldn't be
    • Fixed failed/errored commands not showing up in error messages
    • Fixed syntax errors in multiple module files
    • Fixed runtime errors trap logic
    • Fixed "unexpected 0" error during host refresh

    WebUI & Core

    • Fixed module_service crash issue
    • Fixed whitelist/blacklist not showing proper error handling in WebUI

    Features

    Scripts

    • Domain status query function: Query if a domain is blocked, redirected, or not blocked in the hosts file with detailed feedback
    • Safebrowsing as separate toggle: Separated safebrowsing from pornography block with its own independent toggle, preventing services like youtube from being broken on enabling pornography blocklist
    • Entries count per source: Show blocked entries count for each host source
    • Hot source names parsing: Added support for parsing and showing host source names
    • Dynamic host sources management: Support for enabling/disabling, editing hosts sources & names
    • Custom hosts rules: New feature to add custom blocking/redirecting rules with IP customization
    • Dynamic multi-sources toggling: Add backend support for toggling individual host sources dynamically
    • Custom rules import: Experimental import of custom rules from bindhosts with safety checks
    • Adblock profiles management: New feature to manage and switch between different adblock profiles (Default, lite, balanced, agressive) with auto profile detection on installation based on device performance, Such a good solution for devices that may suffer device performance issues as well.
    • Action script mode: Customize the purpose of module action button (pause/resume/update hosts)
    • Offline installation: Allow module offline installation with idle protection status
    • Auto-resume protection: Auto resume adblock in case of it being paused during installation
    • Enhanced connection handling: Wait for internet connection instead of aborting, added retries limit of 6
    • Dynamic Busybox/Toybox support: Use busybox crond applet directly without extra checks, added toybox support with full native fallback
    • Improved auto-update fallback: Implement fallback when crond/busybox doesn't exist with proper error handling
    • Enhanced hosts remounting: Improved hosts file mounting logic, avoiding bootloops and conflicts with metamodules, such as HybridMount
    • Hosts update parallelism limiting: Limit parallel hosts update processing to be easier on device resources
    • Log improvements: Adjust duration format from h:m:s to m:s:ms, better error logging
    • April joke feature: Introducing "Re-Malware" easter egg for April 1st

    WebUI (Many thanks to @KOWX712)

    • Material Web Components migration: Full Vite-based build with Material Web Component integration
    • Theme&Design rework: Completely reworked theming system using Material Design with dynamically loaded themes from theme.json
    • Domain query feature: Query domain blocking status directly from WebUI
    • Loading indicator for cron toggle: Visual feedback when enabling/disabling cron protection toggle
    • Action mode toggle: Toggle for action script mode (pause/resume/update hosts)
    • Enhanced entries display: Show entries count for each host source and enabled blocklist in WebUI
    • Hosts sources management: UI improvements for enabling/disabling and editing host sources, alongside displaying host source name + favicon _(NOTE: to add a host source with a name, you may enter the url and an inline comment with the host source name such as `https://example.com # Example H
  4. v7.0v7 - SuperiorUpdate!2025-12-28 · 2025-12-28 04:44 UTC
    查看更新说明

    Please take a look at the notes at the end of the changelog after reading it, thank you.

    🐛 Bug Fixes

    Scripts

    • Fixed a whitelist bug that could delete entire hosts file if a non-raw URL was entered
    • Fixed abnormal output issues
    • Fixed possible issue with internet connectivity check on module installation
    • Fixed module status being reset
    • Fixed other ad-blocking modules can be enabled after Re-Malwack installation & rebooting
    • Fixed blacklist entries being parsed incorrectly as "0.0.0.0 domain.com0.0.0.0 blacklisted-domain.com"
    • Removed non-related host source which was accidentally added to pornography blocklist
    • Fixed hosts file not being filtered during update
    • Fixed "unexpected 0" error during status updates
    • Fixed incorrect root manager path detection for KernelSU/APatch
    • Fixed hosts file having multiple spaces not being collapsed
    • Fixed parsing of default hosts entries
    • Fixed possible links being broken after using module (e.g Google Maps)

    WebUI

    • Fixed some ripple animation issues
    • Fixed abnormal output issues

    ✨ Features

    Scripts

    • Protection switch (Pause/Resume): Ability to pause and resume ad-blocking protection without disabling the module
    • Trackers block feature (toggleable): New dedicated blocklist for tracking domains with separate toggle and auto-update capability
    • Import from other ad-blocker modules/apps: New feature to import hosts from other ad-blocker modules/apps like bindhosts, Cubic-Adblock and AdAway [1] [2]
    • Improved hosts mounting: The module now does an automatic hosts mount handling, this means that the module should work in most cases especially with mountify (technically any metamodule), or in case APatch lite mode was enabled [3]
    • ZN host redirect support: Added initial support for ZN-hostsredirect module
    • Enhanced whitelisting: Support for full URLs (automatic conversion to raw domains), better subdomain support, and wildcard whitelisting for domains containing asterisks (*) [4]
    • Better blacklist/whitelist/sources entries management: You can now remove multiple domains instead of removing domains one-by-one.
    • Improved logging system: Enhanced error logging outputs, included more detailed logging for an easier debugging process
    • Better URL sanitization: Simpler and more robust URL handling for blacklist, whitelist and hosts sources
    • New ASCII banners: Additional ASCII art banners with randomization for variety
    • Quiet mode argument (--quiet): Added --quiet argument for quieter operations (not to show ascii banner in case this argument was passed)
    • fail-safe strategies: Added critical errors handling strategies, also some anti-exploit Implementations
    • Better module status message on module description: More detailed, yet more perfect module status indicator message

    WebUI

    • Complete UI Revamp:
      • New header card with module information
      • New module status dashboard
      • Warning card when protection is paused/reset
      • Revamped "About" section
    • test release indicator Added a test release indicator for test releases
    • Theme switcher (Light/Dark mode) in the header
    • Live terminal: Real-time display during hosts update and blocklist toggling
    • Loading spinner on buttons: Visual feedback for ongoing operations
    • Dashboard view: Comprehensive overview of module status and statistics
    • FAB button: Quick access to pause/resume protections
    • Multi-select capability: Ability to select and batch remove multiple whitelist, blacklist entries, and sources
    • Batch operations: Remove multiple entries at once instead of one by one
    • Paused status text: Clear indication when protection is paused
    • Mount check: Warning about broken hosts mount
    • ZN host redirect support: Added support for ZN-hostredirect module
    • Festival mode: Christmas edition with special visual effects

    General Ch

  5. v6.0v6.0 - Mega update 2025-03-31 · 2025-03-31 18:06 UTC
    查看更新说明

    What's new? ✨

    • 🐛 Fixed bug where installer detects disabled conflicted module.
    • 🐛 Fixed bug where whitelist, blacklist, and newly downloaded hosts don't apply due to a broken mount.
    • ⚡ Rewritten full script code for better performance and speed.
    • 🛠️ Added module update/install detection.
    • ⚡ Implemented parallel downloads for a quicker installation/update process.
    • 🔗 Integrated main script with module installer script.
    • 🔄 Added auto-update hosts option.
    • 🔒 Added Social block.
    • 📝 You can now edit, add, or remove host source URLs.
    • ✅ Added online whitelist.
    • 📜 Added logging system.
    • 📤 Added option to export logs via WebUI.
    • 🕵️‍♂️ Hide script detection, now mounted to root manager binaries dir for better hiding.
    • 👀 You can now view whitelisted and blacklisted entries via script or WebUI.
    • ⚠️ Added warning (in WebUI) when resetting hosts, to prevent accidental wipe.
    • 🔄 Added check for WebUI JS API status for MMRL App.
    • 🖥️ Added WebUI JS API request prompt.
    • ⌨️ Added shorter prefixes for commands.
    • 🎨 Various UI improvements in WebUI.
    • 📡 Added possibility to use Re-Malwack hosts using local VPN (no root).
    • 🔘 Blocklists are now toggleable via WebUI and script.
    • 📥 Blocklists now update when updating hosts (only effective for the user’s enabled blocklists).
    • 🚫 Removed hBlock hosts source for faster hosts processing. However, you can still add it manually via script or WebUI.
    • 🛑 Implemented social whitelist exception when Social block is enabled.
    • ⚡ Made installer wizard quicker and quieter.
    • 🎖️ Updated credits

    Support development

    Donation

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Module Version Download Official Telegram Channel Official Telegram Support Chat XDA Support thread Discord Server Personal acc on XDA Personal acc on Discord Donation Built with

    If you are looking for a final solution to get rid of ads, malware, and trackers forever, then Re-Malwack is the best choice for you and your family.

    Table of Contents

    Features // What makes this module special?

    • ⛔ It blocks ads, malware and trackers By default[*], you can also block porn sites, fake news sites, gambling sites and social sites, and even use safebrowsing! (note: may break some youtube features, use with caution!)
    • ⚙ Allows you to modify and manage hosts file (whitelist & blacklist urls, reset hosts, auto update adblock), changes apply instantly without a device reboot
    • 💡 A smart protection status indicator in module description
    • 📦 Shipped with a curated list of adblock profiles [!]
    • 💫 Supports wildcarded whitelisting
    • 🧰 An app-like WebUI, Built with Vite and Material design Expressive UI (Thanks to @KOWX712 for his Awesome work)
    • ⏸ Ability to pause/resume adblock without disabling the module
    • ⛑ Can handle hosts mounts by itself
    • ▶ Module action button purpose customization (Pause/Resume protection - Update hosts)
    • 🔄 Can indicate/show blocked entries count by each enabled blocklist & enabled host source
    • 🔎 Ability to query domain, and check whether it's blocked, or redirected
    • 📝 Supports adding custom hosts rules
    • ✨ Easy to use, Just set and forget!
    • 💉 Supports zn-hostsredirect
    • 🧲 Ability to import your adblock setup from AdAway and bindhosts (Check out 2nd section in FAQ to know how to)
    • 📝 A detailed logging system to debug module behavior and to detect bugs
    • 🛠 Supports Magisk, APatch and KernelSU (and their variants)
    • 👀 Also can protect non-root devices
    • 🔧 Regularly maintained & updated
    • ❤ Made with love and care

    [!CAUTION] [*] Re-Malwack comes with a pre-configured adblock system in which you can use freely without worrying about setting up everything from scratch. However, some ads such as in-app sponsored posts on Facebook or Spotify ads that show up for "non-premium" users are NOT blocked because they are elements inside the app itself, So stay aware.

    [!TIP] [!] A profile is a group of hosts sources in one file, there are several built-in profiles that differ between adblocking levels, and it's automatically selected - during installation of the module - based on your device resources, which makes sure you will get a perfect adblocking experience yet not sacrificing all your device performance, you may also switch between profiles anytime and even customize everything per your likings!

    [!TIP] [@] [BETA] Supported stuff for import: Hosts sources, custom rules (bindhosts only), whitelist and blacklist (bindhosts and AdAway)

    [!CAUTION] Also avoid using other types of adblock files, only adblock files in hosts format (Linux/Windows) are accepted

    Requirements

    [!IMPORTANT]

    • Stable internet connection. (You can also install the module without internet, then setup things later after reboot)
    • and umm...just a working brain.

    [!CAUTION]

    • Do not use this module with any other ad blocker module/app, such as AdAway and Magisk's built-in systemless hosts module.
    • In case module is active but ads are not blocked in browsers such as chrome/chromium-based browsers, Please disable "Umount modules" in KSU manager app for target browser app then try again*

    How to use Re-Malwack

    Option 1 - Via WebUI

    Option 2 - Terminal

    • Run su then run rmlwk in the terminal to show up the next help message which will clarify how to use it:
    [i] Usage: rmlwk [--argument] OPTIONAL: [--quiet]
              --update-hosts, -u: Update the hosts file.
              --profile, -p <default|lite|balanced|aggressive|custom>: Switch adblock level profile.
              --auto-update, -a <enable|disable>: Toggle auto hosts update.
              --custom-source, -c <add|remove|edit> ...: Add/remove/edit custom hosts sources.
              --custom-rule, -cr <add|remove> <IP> <domain>: Add or remove custom hosts rules.
              --reset, -r: Reset hosts file to default.
              --query-domain, -q <domain>: Query if a domain is blocked, redirected, or not blocked.
              --adblock-switch, -as: Toggle protections on/off.
              --block-trackers, -bt <disable>, block trackers, use disable to unblock.
              --block-porn, -bp <disable>: Block pornographic sites, use disable to unblock.
              --block-gambling, -bg <disable>: Block gambling sites, use disable to unblock.
              --block-fakenews, -bf <disable>: Block fake news sites, use disable to unblock.
              --block-social, -bs <disable>: Block social media sites, use disable to unblock.
              --whitelist, -w <add|remove> <domain|pattern> <domain2> ...: Whitelist domain(s), only whitelist one domain at a time, otherwise use wildcard or use multiple domains in case of unwhitelisting.
              --blacklist, -b <add|remove> <domain1> <domain2> ...: Blacklist domain(s).
              --export-logs, -e: Export logs to a tarball in Download directory.
              --help, -h: Display help.
              
              Example command: su -c rmlwk --update-hosts
    
    

    Option 3 - Local VPN (no root)

    • You can still protect your device without needing for root access, visit our repo for our ready-to-use hosts sources! Our hosts can be added on apps such as DNSnet, and AdAway, and any other adblocking app of your choice.

    Download

    [!TIP]

    How does it work? - Frequently Asked Questions (FAQ)

    [!TIP] How does this module block ads?

    • It uses your system's hosts file systemlessly to block ads and malware by denying access for your phone to connect to them completely.

    [!TIP] How to import my adblock setup from Bindhosts/AdAway?

    • If you're coming from Bindhosts: simply keep the module turned on, flash Re-Malwack and it will auto detect the module during install and ask you if you would like to import or no.
    • If you're coming from AdAway: Export an AdAway backup file and place it in your Downloads folder inside your internal storage, the module will auto detect the file on installation and ask you if you would like to import or no.

    [!TIP] There's a problem when using the module

    • Export logs via module WebUI, then create an issue explaining your problem and attach ss of the problem if there is any. You can also report your problem in our telegram support group as well.

    [!TIP] AdBlock doesn't work on some apps (ex: Chrome), or doesn't work completely

    • As was said above, Make sure you have disabled umount for the target app (if you use KernelSU), also make sure you disabled LiteMode (if you use APatch). If nothing works then create an issue about it or report the problem in our telegram support group. If you've already done these, and no result then switch to a stronger adblock profile/add more robust host source from your own choice.

    [!TIP] Can I contribute in something?

    • You may suggest features via Github Issues or in our Telegram support group, You may also create your own fork of this repo, apply your modifications and then do a pull request explaining the change, and its importance.

    [!NOTE]

    Activity

    Alt

    Credits List

    1 - Contributors

    2 - Hosts Sources Providers

    3 - Foundational Supporters

    4 - Acknowledgment

    Donations

    As a 12th-grade student who have to study almost all the time, and at the same time taking care of projects like this, your support would mean the world to me. If you find this module useful, please consider making a small donation using the button below, this will make a difference in my life 😁❤️

    Donation