Advanced Filtering Tutorial
Learn how to use advanced filtering features to precisely control website access restrictions, including content-based filtering, keyword matching, and custom rules.
Content Filtering
Content filtering allows you to block website access based on webpage content, not just URLs.
Note: Content filtering requires more system resources as it needs to analyze webpage content. Use this feature with caution.
Enabling Content Filtering
Enable content filtering in your configuration file:
{
"contentFiltering": {
"enabled": true,
"scanTypes": ["html", "text", "javascript"],
"maxScanSize": "1MB"
}
}
Keyword Matching
Use keyword matching to block webpages containing specific content.
Configuring Keyword Lists
{
"keywordFiltering": {
"enabled": true,
"keywords": [
"gambling",
"betting",
"adult content",
"violent content"
],
"matchType": "any" // "any" or "all"
}
}
This configuration will block any webpage containing any of the specified keywords.
Regular Expression Patterns
Use regular expressions to create more complex URL matching patterns.
Example: Blocking Specific URL Types
{
"rules": [
{
"pattern": "^https?://(www\\.)?youtube\\.com/watch\\?v=",
"type": "regex",
"action": "block",
"reason": "Block YouTube video pages"
},
{
"pattern": "^https?://(www\\.)?facebook\\.com/",
"type": "regex",
"action": "block",
"reason": "Block all Facebook pages"
}
]
}
Custom Rules
Create custom rules to implement more complex filtering logic.
Conditional Rule Example
{
"rules": [
{
"name": "Work Hours Social Media Restriction",
"conditions": {
"timeRange": {
"start": "09:00",
"end": "17:00",
"weekdays": ["monday", "tuesday", "wednesday", "thursday", "friday"]
}
},
"actions": [
{
"type": "block",
"targets": ["facebook.com", "twitter.com", "instagram.com"]
}
],
"message": "Social media access is not allowed during work hours"
}
]
}
Practical Application Examples
Here are some advanced filtering configuration examples for real-world scenarios.
Example 1: Home Network Protection
Set up comprehensive content protection for your home network:
{
"contentFiltering": {
"enabled": true,
"keywords": [
"adult content", "violence", "gambling", "drugs", "hate speech"
]
},
"urlRules": [
{"url": "*.pornhub.com", "reason": "Adult content", "enabled": true},
{"url": "*.xvideos.com", "reason": "Adult content", "enabled": true}
]
}
Example 2: Office Productivity Enhancement
Improve employee productivity during work hours:
{
"rules": [
{
"name": "Work Hours Entertainment Restriction",
"conditions": {
"timeRange": {
"start": "09:00",
"end": "17:30",
"weekdays": ["monday", "tuesday", "wednesday", "thursday", "friday"]
}
},
"actions": [
{
"type": "block",
"targets": [
"youtube.com", "netflix.com", "twitch.tv",
"facebook.com", "twitter.com", "instagram.com"
]
}
],
"message": "Entertainment websites are not accessible during work hours"
}
]
}
Continue Learning
Now that you understand advanced filtering features, you can check our API reference documentation for more detailed information.
Legacy Version Usage Instructions
We are committed to providing users with the best product experience and technical support. With the continuous development of technology, we have had to adjust our support strategy for older versions:
Versions No Longer Supported
Except for versions 1+ and 2+, all other older versions (including but not limited to v0.1-v1.0, v2.0-v2.9, etc.) are no longer supported. This means:
- No more security updates or bug fixes
- No more technical support or troubleshooting services
- No more feature or compatibility updates
Reasons for Discontinuation
- Outdated Technology: Older versions are based on outdated technical architectures and cannot adapt to modern operating systems and browser environments
- Security Risks: Older versions have potential security vulnerabilities that cannot be fixed in a timely manner
- High Maintenance Costs: Maintaining multiple versions simultaneously diverts development resources, affecting the iteration speed of new versions
- Large Function Differences: Older versions have significant functional differences from the current version, resulting in high support costs
Recommended Upgrade Path
If you are still using an unsupported older version, we strongly recommend upgrading to the latest version:
- Back up your current configuration data (if any)
- Uninstall the old version of the software
- Download the latest version from our official website: https://websiteblocker.vercel.app/download
- Install the latest version and reconfigure your settings
Continuing to use unsupported older versions may cause the software to not work properly, pose security risks, and may be incompatible with new operating systems. Please upgrade to the latest version as soon as possible for the best experience and security.