A Rust library to block ads, trackers, and embeds for networking.
Add spider_network_blocker to your Cargo project with:
cargo add spider_network_blockeruse spider_network_blocker::{xhr::URL_IGNORE_XHR_TRIE, scripts::URL_IGNORE_TRIE};
let xhr_blocked = URL_IGNORE_XHR_TRIE.contains_prefix(".doubleclick.net");
let scipt_blocked = URL_IGNORE_TRIE.contains_prefix(".doubleclick.net");Contributions and improvements are welcome. Feel free to open issues or submit pull requests on the GitHub repository.
This project is licensed under the MIT License.