cPFence’s Captcha WAF module lets you define exactly which login pages and other paths are protected by CAPTCHA checks. You can update this list via the WebUI or by editing the configuration file through the CLI.
Using the WebUI
- Open the cPFence WebUI on your Main Control Panel server and select Edit Configuration Files → Edit Captcha Protected URLs.
- In the list that appears, add each URL path you want protected on its own line (for example,
/wp-login.php
or/custom-admin/login
) or remove any paths you no longer need. - Click Save to apply your changes.
Restart the Web Server
To apply these changes, restart your web server:
systemctl restart nginx.service
systemctl restart apache2.service
systemctl restart lshttpd.service
CLI Options
You can also manage the protected URLs directly on the server:
nano /opt/cpfence/app/cpfwaf/userdata_login_pages
Add or remove one URL path per line. For example:
/wp-login.php
/wp-admin
/custom-admin/login
/my-custom-login.php
Save the file (Ctrl + O
) and exit (Ctrl + X
).
Restart the Web Server
To apply these changes, restart your web server:
systemctl restart nginx.service
systemctl restart apache2.service
systemctl restart lshttpd.service
Need Further Assistance?
If you encounter any issues or need additional help, feel free to reach out to our support team via your client portal.