Security should be a top priority for any web application handling user data and communications. This section outlines essential security measures for your ChatNet installation including changing default secret keys, enforcing SSL/HTTPS, setting strong passwords, securing your database, configuring file upload restrictions, and implementing regular backups. Following these practices helps protect your platform and users from common security threats.
Edit config/init.php:
// Change this to a unique random string define('SECRET_KEY', 'your-unique-random-string-here');Generate a secure key:
echo bin2hex(random_bytes(32));Secure all communications by enabling HTTPS on your server.
https://Use strong, unique passwords for all administrator accounts.
Protect your database from unauthorized access.
root for productionIn Chat & Features > Chat Settings:
See the Backup & Maintenance section for details.
Navigate to Moderation > IP Access
IP logging and blacklisting help protect your platform from malicious users, spam bots, and repeated abuse.
| Setting | Description |
|---|---|
| Enable IP Logging | Track IP addresses for user actions |
| Log Login Attempts | Record IPs during login |
| Log Registration | Record IPs during signup |
| Log Password Resets | Track password reset requests |
Blocked IPs will be denied access to the entire platform.
192.168.1.0/24)Navigate to Moderation > Domain Filter
The domain filter controls which URLs and links can be shared in chat messages, helping prevent spam and malicious links.
| Mode | Description |
|---|---|
| Whitelist | Only allow links from specified domains |
| Blacklist | Block links from specified domains |
| Disabled | Allow all links |
Enter domains without http:// or www:
example.com trusted-site.org your-company.comOnly links from these domains will be allowed:
All other links will be blocked or stripped from messages.
Links from these domains will be blocked:
All other links will be allowed.
Depending on configuration:
Extra steps to further harden your ChatNet installation.