Configuration Guide
This guide will help you configure the Website Access Restriction Tool to meet your specific needs.
Basic Configuration
Basic configuration includes setting up the list of websites to block and basic rules.
Tip: The configuration file is typically located at config.json, which you can edit with any text editor.
Adding Blocked Websites
To add websites to block, edit the blocked_sites array in the configuration file:
{
"version": "4.4",
"blocked_sites": [
{
"url": "example.com",
"reason": "Time management",
"enabled": true
},
{
"url": "socialmedia.com",
"reason": "Improve focus",
"enabled": true
}
],
"logging": {
"enabled": true,
"level": "info",
"path": "./logs/"
}
}
Advanced Configuration
Advanced configuration allows you to customize blocking behavior and add special rules.
Wildcards and Subdomains
You can use wildcards to block entire domains or their subdomains:
{
"version": "4.4",
"blocked_sites": [
{
"url": "*.example.com",
"reason": "Block all subdomains",
"enabled": true
}
],
"advanced": {
"redirect_url": "https://blocked.example.com",
"custom_message": "This website is blocked",
"whitelist": ["*.work.com"]
}
}
Scheduled Configuration
You can set specific time periods to enable or disable website blocking.
{
"version": "4.4",
"schedule": {
"enabled": true,
"active_hours": {
"start": "09:00",
"end": "17:00",
"weekdays_only": true
}
}
}
This configuration will enable website blocking between 9 AM and 5 PM on weekdays.
Notification Settings
Customize the message displayed when users try to access blocked websites.
{
"notifications": {
"enabled": true,
"message": "This website has been blocked to improve productivity.",
"show_alternatives": true,
"redirect_url": "https://example.com/productivity"
}
}
Troubleshooting
Solve common problems you may encounter during configuration.
Note: If the configuration file format is incorrect, the tool may not work properly. Please ensure the JSON format is valid.
Common Issues
- Configuration changes not taking effect: Try restarting the application or reloading the configuration
- Certain websites not being blocked: Check if the URL format is correct, including protocol (http/https)
- Configuration file cannot be read: Ensure file permissions are correct and the application has read access
Need More Help?
If you encounter issues during configuration, you can check our troubleshooting guide or contact our support team.
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.