No results found

Try a different search query

Popular searches:

Add to Cart

Cart

You have no purchases yet

Browse Marketplace
Solved

Protecting OpenCart admin from brute force

Логи показують постійні спроби входу в адмінку.

Які методи захисту рекомендуєте?

  • Зміна URL адмінки?
  • Двофакторна автентифікація?
  • Captcha?
  • Інше?
a
admin4eg
· 572 views · 4 followers · 5 bookmarked
0

1 answer

6 листопада 2025 (19:54)
Accepted Answer

For admin protection, I recommend a comprehensive approach:

1. Fail2ban for IP blocking

# /etc/fail2ban/jail.local
[opencart-admin]
enabled = true
filter = opencart-admin
logpath = /var/www/html/storage/logs/error.log
maxretry = 5
bantime = 3600

2. Two-Factor Authentication

Install Google Authenticator module from marketplace.

3. Captcha

// In login controller
if (!$this->captcha->verify()) {
    $this->error['captcha'] = 'Invalid captcha';
}

4. Additionally:

  • Restrict access by IP via .htaccess
  • Change admin path
  • Use HTTPS
1

Your Answer

Login to answer this question

Login

Report

We use cookies

We use cookies and similar technologies to improve your experience, analyse traffic, and show personalised ads. Read our Cookie Policy for details.