Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
spider_firewall
A Rust library to shield your system from malicious and unwanted websites by categorizing and blocking them.
Installation
Add spider_firewall
to your Cargo project with:
Usage
Checking for Bad Websites
You can check if a website is part of the bad websites list using the is_bad_website_url
function.
use is_bad_website_url;
Adding a Custom Firewall
You can add your own websites to the block list using the define_firewall!
macro. This allows you to categorize new websites under a predefined or new category.
use is_bad_website_url;
// Add "bad.com" to a custom category.
define_firewall!;
Example with Custom Ads List
You can specify websites to be blocked under specific categories such as "ads".
use is_ad_website_url;
// Add "ads.com" to the ads category.
define_firewall!;
Blockers sourced
Build Time
The initial build can take longer, approximately 5-10 minutes, as it may involve compiling dependencies and generating necessary data files.
Contributing
Contributions and improvements are welcome. Feel free to open issues or submit pull requests on the GitHub repository.
License
This project is licensed under the MIT License.