Comment waterproof wall Comment permission control plugin

🚀 Overview
Comment Waterproof Wall Plugin is a comment management system designed for Z-BlogPHP. It effectively prevents spam comments and malicious comment flooding through a multi-level permission control mechanism, safeguarding the quality of website content.
✨ Features
🔐 Multi-level Permission Control
User Level Control: Restricts commenting permissions based on user identity.
Terminal Type Control: Differentiates access permissions for PC and mobile devices.
Category and Article Control: Manages comments precisely at the category and article level.
Referrer Domain Control: Implements access control based on referrer domains.
⏰ Smart Time Management
Time Slot Control: Sets specific time periods during which commenting is allowed.
Comment Frequency Limit: Prevents mass comment submissions within a short period.
24-Hour Statistics: Tracks comment counts on a daily basis.
🛡️ Security Protection
Comment Attachments: Protects against attacks from automated comment software.
JS Obfuscation Technology: Increases the difficulty of cracking.
Exception Rules: Provides flexibility in setting special rules.
⚙️ Installation and Configuration
Environment Requirements
Z-BlogPHP 1.7+
PHP 7.0+
Installation Steps
Download the plugin and upload it to the Z-Blog plugin directory.
Enable the plugin in the backend.
Configure various permission rules according to your needs.
Save the settings and test the effects.
🔧 Detailed Configuration Instructions
👥 User Control
| Configuration Item | Description | Example Value |
|---|---|---|
| User Level Higher Than | The minimum user level allowed to comment. | Visitor |
User Level Description:
Visitor: The lowest level, all users can comment.
Member: Only registered users can comment.
Administrator: Only administrators can comment.
📱 Terminal Control
| Configuration Item | Description | Optional Values |
|---|---|---|
| Allowed Commenting Terminals | Select the types of devices allowed to comment. | PC, Mobile |
📂 Category Control
| Configuration Item | Description | Operation Method |
|---|---|---|
| Allowed Commenting Categories | Select the article categories that allow comments. | Windows: Ctrl+Multi-select Mac: Command+Multi-select |
Example Configuration:
Cars and Travel,Wuling Baojun,Okang Sanneng,BaoShiTai Ben-tuning,Cutting-edge Technology,Untitled,Young Generation,Global Hotspots
📄 Article Control
| Configuration Item | Description | Format Requirement |
|---|---|---|
| Allowed Commenting Article IDs | Precisely control commenting permissions for individual articles. | Use " |
Example Configuration:
1|2|3
🌐 Referrer Control
| Configuration Item | Description | Format Requirement |
|---|---|---|
| Allowed Referrer Main Domains | Access control based on referrer domains. | Use " |
Example Configuration:
baidu.com|google.com|bing.com|127.0.0.2
⏰ Time Control
| Configuration Item | Description | Format Requirement |
|---|---|---|
| Allowed Commenting Time Slot | Set the time allowed for commenting each day. | 24-hour format |
Example Configuration:
Start Time: 9 AM
End Time: 5 PM
📊 Count Control
| Configuration Item | Description | Configuration Method |
|---|---|---|
| User Comment Limit | Limits the number of comments a user can make within 24 hours. | User Type + Quantity Limit |
| IP Comment Limit | Limits the number of comments an IP address can make within 24 hours. | IP + Quantity Limit |
Example Configuration:
User: All Can only post: 6 comments within 24 hours
🎯 Exception ID Settings
| Configuration Item | Description | Notes |
|---|---|---|
| Article IDs to Bypass Plugin Rules | Special articles that are not restricted by the above rules. | Use " |
Example Configuration:
7|8|9
🔒 Advanced Security Configuration
Comment Box Display Control
Hide Comment Box: Hides the comment box when the user lacks commenting permissions.
Applicable Conditions: Requires standard theme support.
Comment Attachment Protection
Principle: Prevents automated comment software from submitting through the form.
| Configuration Item | Description | Default Value |
|---|---|---|
| Comment Form Selector | The CSS selector for the comment form. | #frmSumbit |
| Obfuscate JS | Obfuscates frontend JS code to increase cracking difficulty. | Optional |
System Verification
System Comment Key Verification: Enables the system's built-in Key authentication.
⚠️ Management Options
Clear Configuration
Function: Resets the plugin settings to their initial state.
Warning: Use with caution, this operation is irreversible.
📋 Usage Guide
Basic Configuration Flow
Determine Protection Strategy
Analyze the characteristics of spam comments on your website.
Identify key areas that require protection.
Set User Permissions
User Level Higher Than: Member
Configure Content Permissions
Category Control: Important Categories Article Control: 1|2|3 (Special Articles) Exception IDs: 7|8|9 (Open Articles)
Set Time Restrictions
Time Control: 9 AM - 5 PM Count Control: 6 comments per user / 24 hours
Advanced Protection Configuration
Referrer Control Configuration
Referrer Control: baidu.com|google.com
Security Enhancement Configuration
Enable Comment Attachment Protection.
Set the correct form selector.
Enable JS obfuscation.
Handling Exceptions
Set Exception Articles
Exception IDs: 7|8|9
Notes
Comments on exception articles are still counted towards the total.
Regularly check the validity of exception rules.
🛠️ Best Practices
Configuration Schemes for Different Scenarios
High Security Website
User Level: Administrator Terminal Control: PC Time Control: 9 AM - 5 PM Count Control: 3 comments / 24 hours Referrer Control: Strict Limit
General Content Website
User Level: Member Terminal Control: All Time Control: All Day Count Control: 10 comments / 24 hours Category Control: Important Categories
Open Discussion Forum
User Level: Visitor Terminal Control: All Time Control: All Day Count Control: 20 comments / 24 hours Exception IDs: Special Articles
Troubleshooting Guide
Comment Box Not Displaying
Check the "Disable Comments" option.
Verify user permission settings.
Check theme compatibility.
Comment Submission Failed
Check time control settings.
Verify count limits.
Review referrer domain settings.
Security Feature Malfunction
Check form selector configuration.
Verify JS obfuscation compatibility.
Check browser console for errors.
🔍 Maintenance Recommendations
Regular Checks
Rule Validity
Check if time control settings are reasonable.
Verify the validity of category and article IDs.
Security Settings
Check the Comment Attachment Protection feature.
Verify the effectiveness of JS obfuscation.
Statistical Data
Monitor comment count trends.
Analyze spam comment characteristics.
Performance Optimization
Caching Strategy: Implement appropriate caching to reduce database queries.
Log Management: Regularly clear operation logs.
Rule Optimization: Adjust rule complexity based on actual circumstances.
⚠️ Notes
Configuration Warnings
Clear Configuration: This operation is irreversible, proceed with extreme caution.
Exception IDs: Comments on exception articles are still counted.
Theme Compatibility: Some features require standard theme support.
Security Reminders
Regular Backups: Back up important configurations promptly.
Rule Testing: Thoroughly test new rules before going live.
Monitoring and Alerts: Set up alerts for comment anomalies.
👩🏫 Technical Support
Common Issues
Configuration Not Taking Effect: Check cache clearing and rule priority.
Comment Anomalies: Review system logs and error messages.
Function Conflicts: Check compatibility with other plugins.
Getting Help
Consult plugin documentation.
Contact technical support.
Participate in community discussions.
Article link: https://docs.zbp.cool/lldocs/46.html
Helpful?
2025-10-13 10:10:37
2025-10-13 10:10:15
2025-10-13 10:04:22