SOFTWARE / INFRASTRUCTURE / SECURITY / KENYA
Done
Action completed
Technical Guide Website Development & Security Intermediate • 5 min read Internal Lab Reference

How to Protect Your Website Against Brute-Force Attacks

M Author: Mercy Wanjiku (Full-Stack Software & Systems Engineer)
Reviewed by: Lawrence Kamau (Lead Systems Architect & Infrastructure Engineer)
Published: May 1, 2026 • Last Updated: Nov 22, 2026 • Target Hardware: Linux VPS, cPanel/CWP servers, Laravel, and WordPress login endpoints.

Automated bots continuously probe login pages with thousands of credential combinations, consuming server CPU and risking unauthorized access.

Prerequisites

  • Server firewall (CSF/Fail2Ban) or application rate-limiting configuration access.

Step-by-Step Configuration

STEP 01 — Enable Login Rate Limiting & Lockouts

Temporarily block IP addresses after 5 consecutive failed authentication attempts within 10 minutes.

STEP 02 — Configure Server-Level Fail2Ban or CSF

Monitor web server authentication logs and automatically drop repeat offenders at the firewall layer.

STEP 03 — Add Bot Challenge Verification

Protect public login and password-reset forms with lightweight anti-automation verification.

Troubleshooting Matrix

Issue:
Fix:
SECURITY HARDENING

Combine rate limiting with strong unique passwords and 2FA to neutralise credential stuffing.

M
Mercy Wanjiku Delight Engineering Team
Full-Stack Software & Systems Engineer
Specialization: PHP 8.3 / Laravel, AI Workflow Triage, Database Optimization & M-Pesa API Architecture

Architects Delight internal platforms, including the YouBroadband billing engine, landlord revenue-sharing portal, and custom CRM ticketing solutions.

Tested on Delight Living ISP Network (YouBroadband)
Nairobi NOC • Kabiria Road, Dagoretti South
Related Technical Guides
Was this engineering guide helpful?
Need professional installation, auditing, or troubleshooting? Request a Website Security Assessment →