Security1/1/2026• 5 min read

Server Security Hardening

CSF firewall, sysctl hardening, permissions, security headers, disable_functions, MySQL binding, SSL management.

Ali Khaleghi

Systems Engineer

Server Security Hardening

Overview

Harden your Linux server against attacks with layered security configuration. From firewall rules to kernel parameters, file permissions to SSL certificates — I lock down every attack surface.

Security Layers

  • CSF/LFD Firewall: Configured rules, port management, brute-force protection
  • Kernel Hardening (sysctl): SYN cookies, IP spoofing protection, ICMP restrictions
  • File Permissions: wp-config.php → 640, .env → 600, proper ownership
  • Security Headers: X-Frame-Options, CSP, HSTS, X-Content-Type-Options
  • XML-RPC Blocking: Disable on all WordPress sites to prevent DDoS/amplification
  • PHP Hardening: disable_functions, open_basedir, safe_mode restrictions
  • MySQL Security: Bind to localhost, remove test databases, restrict users
  • SSL Management: Let's Encrypt auto-renewal, HSTS, certificate monitoring
Security is not a product, it's a process. I implement defense-in-depth so even if one layer fails, others protect you.

Proof: Production server hardening — 113 wp-config.php to 640, 10 .env to 600, XML-RPC blocked on 54 sites, WP2Shell deployed on 55 sites.

Pricing

Price range: 10–40M Toman per server
Turnaround: 24-48 hours
Includes: Full audit, configuration, verification, documentation

10000000–40000000 Toman24-48h
SecurityHardeningCSFFirewallsysctlPermissionsSSL

Written by Ali Khaleghi

Building and rescuing servers since 2010.

Reviews (2)

CA
Client A★★★★★

Excellent work, fast turnaround.

2026-01-15

CB
Client B★★★★☆

Professional and reliable.

2026-02-20