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

How to Secure Your Website

D Author: David Ochieng (ISP Field Operations & NOC Lead)
Reviewed by: Mercy Wanjiku (Full-Stack Software & Systems Engineer)
Published: May 1, 2026 • Last Updated: Nov 22, 2026 • Target Hardware: PHP/Laravel web applications, WordPress sites, and Linux/cPanel hosted websites.

Protecting a business website requires layered controls spanning HTTPS encryption, clean server permissions, updated dependencies, and automated off-site backups.

Prerequisites

  • Hosting control panel or SSH access.
  • Domain DNS management access.

Step-by-Step Configuration

STEP 01 — Enforce HTTPS with a Valid SSL/TLS Certificate

Install an SSL certificate and configure permanent 301 redirects so all HTTP traffic routes securely over HTTPS.

STEP 02 — Keep CMS Core, Plugins & PHP Versions Updated

Remove unused themes or plugins and run actively supported PHP versions (PHP 8.2+) with security patches.

STEP 03 — Harden File Permissions & Configuration Files

Restrict directory permissions (755 for folders, 644 for files) and block public web access to .env or wp-config.php files.

STEP 04 — Enable Web Application Firewall (WAF) & Security Headers

Configure X-Frame-Options, Content-Security-Policy, and rate limiting on login and form endpoints.

CLI / Configuration Snippet

# Example Apache .htaccess HTTPS redirect
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Troubleshooting Matrix

Issue:
Fix:
SECURITY HARDENING

Schedule periodic security audits to check for outdated dependencies, exposed admin endpoints, and unauthorized file changes.

D
David Ochieng Delight Engineering Team
ISP Field Operations & NOC Lead
Specialization: Customer Premise Equipment (CPE), SLA Monitoring, VLAN Provisioning & Client Support

Manages daily NOC telemetry, subscriber ticket queues, and on-site client turn-ups across corporate and residential estates in Nairobi.

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 →