Overview
The update process ofblackweb.txt consists of several steps executed in sequence by the bwupdate.sh script. This automated process downloads public blocklists, validates domains, performs DNS lookups, and integrates the final list with Squid-Cache.
Process Steps
The update script performs the following operations in sequence:Capture Public Blocklists
Downloads domains from public blocklists and unifies them into a single file. See the complete list of sources in the project documentation.
Domain Debugging
Removes overlapping domains, performs homologation to Squid-Cache format, and excludes false positives using an allowlist (
debugwl.txt).TLD Validation
Validates domains against a comprehensive list of Public and Private Suffix TLDs (ccTLD, ccSLD, sTLD, uTLD, gSLD, gTLD, eTLD) up to 4th level domains.
Punycode/IDN Debugging
Converts international characters (non-ASCII) to Punycode/IDNA format and removes hostnames larger than 63 characters (RFC 1035).
Non-ASCII Character Cleanup
Removes entries with invalid encoding, non-printable characters, whitespace, and disallowed symbols, ensuring clean ASCII format.
DNS Lookup (2-Step Validation)
Performs parallel DNS validation to exclude invalid or nonexistent domains. This is the most resource-intensive step.
Government TLD Exclusion
Removes government-related domains (.gov, .mil, etc.) from the final blocklist.
Running the Update Script
To download and execute the update script:The script will request elevated privileges when required for Squid operations.
Important Considerations
Default Installation Path
Default Installation Path
The default path for BlackWeb is
/etc/acl. You can modify this in the script to match your preferences.Interrupting Execution
Interrupting Execution
If you interrupt
bwupdate.sh execution (Ctrl + C) during the DNS Lookup phase, the script will restart from that point on the next run. If stopped earlier, you must start from the beginning or manually modify the script to resume from a specific point.AUFS Cache Directory
AUFS Cache Directory
If you use
aufs, temporarily change it to ufs during the upgrade to avoid the error:Completion Verification
After successful completion, check your system log:SquidError.txt for review.
Next Steps
Install Dependencies
Set up required packages and Squid installation
Run Update Script
Execute the bwupdate.sh script
DNS Lookup Process
Understand parallel DNS validation
Debugging Features
Learn about domain validation and cleaning
