Installation
Step 1: Upload Extension Files
Upload the Security extension files to your Paymenter installation:
/var/www/paymenter/extensions/Others/Security/
Upload all Security files to
extensions/Others/Security/
using SFTP or your preferred file transfer method.
Step 2: Enable Extension
Enable the extension in your Paymenter admin panel:
Admin Panel → Extensions → Others → Security → Enable
The extension runs its database migrations automatically when enabled, and again after an update.
Configuration
Extension Settings
After enabling, configure the security settings in the admin panel:
| Setting | Description | Default |
|---|---|---|
| Auto-suspend fraud accounts | Enable automatic fraud detection | Off |
| Block VPN/Proxy IPs | Block known VPN and proxy services | Off |
| Max login attempts | Failed attempts from one IP before it is blocked automatically. | 5 |
| IP block duration | Set block duration in minutes | 60 |
| Enable name validation | Block gibberish names | On |
| Block disposable emails | Block temporary email addresses | On |
| Enable IP reputation | Check IP reputation via APIs | On |
| Enable audit logging | Log all security events | On |
Login and registration protection
Since version 2.4 the extension protects your site by itself. You do not need to change any Paymenter files.
- Blocked IP addresses and addresses on an enabled blocklist are refused on every page.
- Suspended accounts are signed out and cannot sign in.
- Failed logins count towards the automatic IP block.
- Registrations are checked for VPN use, repeated sign-ups from one address, unusable names and disposable email addresses, according to your settings.
The admin area, payment gateway webhooks, staff accounts and addresses on the whitelist are not affected by IP blocks, so you cannot lock yourself out.
Upgrading from an earlier version
Earlier versions asked you to add code to app/Livewire/Auth/Login.php and app/Livewire/Auth/Register.php. Remove those additions after updating, otherwise failed logins are counted twice. To check whether they are still there, run this from your Paymenter folder. Both files should show 0.
grep -c SecurityService app/Livewire/Auth/Login.php app/Livewire/Auth/Register.php
Running behind a proxy
If your site runs behind a reverse proxy or a CDN, Paymenter must know the address of that proxy to see the real IP address of your visitors. Add it under Trusted Proxies in your Paymenter settings.
Until the proxy is trusted, all visitors appear to come from one address. IP based blocking is then paused so that nobody gets locked out, and a warning is written to the Paymenter log. Suspended accounts are still blocked.
Privacy
With Block VPN/Proxy IPs turned on, the IP address of a visitor who logs in or registers is checked at proxycheck.io and vpnapi.io. With Enable IP reputation turned on, it is also checked at ipqualityscore.com and AbuseIPDB. Mention this in your privacy policy if you use these options.
Webhooks
Security events can be pushed to a Discord webhook. Go to Admin Panel → Security → Security Webhooks , add your webhook URL and pick the events you want.
| Event | Fires when |
|---|---|
login_success |
A user logs in successfully |
login_failed |
A login attempt fails. Requires the login integration |
login_blocked |
A login is refused because of a block, VPN or suspension |
ip_blocked / ip_unblocked |
An IP is blocked automatically or by hand, or released |
account_suspended / account_suspension_lifted |
An account is suspended or reinstated |
Use the Test action on a webhook to send a sample message and confirm the URL works.
Usage
Viewing Security Logs
Everything lives under the Security group in the admin sidebar:
- Login Attempts - every successful and failed login, with IP, user agent and reason
- Blocked IPs - currently blocked addresses and their failed-attempt counter
- Suspended Accounts - suspended users and the reason
- Security Audit Logs - every security event, the source of the webhook messages
- Security Webhooks - your webhook endpoints
- Security Whitelist - IPs and email addresses that skip all checks
- IP Reputation Cache - cached results of reputation lookups
Managing Blocked IPs
- Go to Admin Panel → Security → Blocked IPs
- View all currently blocked IPs
- Unblock IPs manually if needed
Troubleshooting
| Symptom | Cause |
|---|---|
| Blocked IPs still get through, or a warning about trusted proxies is in the log | Your proxy is not listed under Trusted Proxies in your Paymenter settings |
| Accounts are blocked after fewer failed logins than you set | The code from an earlier version is still in Login.php. Remove it |
| Webhooks arrive late or not at all | Alerts run in the background, so the Paymenter queue worker must be running |
| Nothing at all is recorded, not even successful logins | The extension is not enabled, or its migrations have not run |
Need Help?
Join our Discord Server and open a ticket for support.