Skip to content
LiteSpeed Documentation
GeoLocation Support
Initializing search
GitHub
Get Started
LiteSpeed Web Server
LiteSpeed Web ADC
LSCache
Cloud
Licenses
Other Products
LiteSpeed Documentation
GitHub
Get Started
Get Started
Welcome
LiteSpeed Web Server
LiteSpeed Web Server
Overview
Trial License Installation
Installation
Standalone Installation
One-Click Installation
Updates
Configuration
Configuration
Configuration
Native Configuration
Templates
reCAPTCHA
SSL Setup
Security
Security Headers
Internal Redirect
Namespace Containers
Bubblewrap
cgroups
Namespaces and cgroups CLI
OCSP Stapling
Video Streaming
Auto Index Script
AWStats
Logging Tools
Command Reference
Real-Time Stats
Tuning
Tuning
Shared Hosting Server
Dedicated with Large Site
Troubleshooting
Troubleshooting
General
WebAdmin Console
SSL
External Applications
External Applications
SuEXEC for External Apps
PHP
PHP
Overview
Getting Started
Configuration
Configuration
Controlling LSPHP
LSPHP Modes
LSPHP Options
Advanced
Troubleshooting
Troubleshooting
Overview
503
How-To
Advanced
Performance
Extensions
Perl
Perl
Overview
Perl Configuration
Control Panels
Control Panels
cPanel
cPanel
Overview
Quick Start Guide
WHM LiteSpeed Plugin
WHM LiteSpeed Plugin
Installation
Switching Licenses
LSCWP Management
LSCWP Management CLI
Cache Redis for Users CLI
LiteSpeed Containers
cPanel Plugin
Troubleshooting
PHP
PHP
PHP
Per-User php.ini
Override Auto-Detected PHP
PHP Selector
TimeZoneDB
CloudLinux
LiteSpeed Containers
LSCache Setup
Security
Security
ModSecurity/WAF
DDoS Attack Protection
reCAPTCHA Protection
WordPress Protection
Tuning
ZeroConf Clusters
How-To
How-To
Enable or Disable QUIC and HTTP/3
GeoLocation Support
GeoLocation Support
Table of contents
Enable MaxMind GeoIP2
Download GeoIP2 Database
Configure the Database
GeoIP2 Environment Variables
Example 1
Example 2
Example 3
Example 4
Set "GeoIPEnable On"
Use GeoIP for Cache Varies
Testing
Example 1: Block wp-login.php from certain countries
Example 2: Redirecting a client based on country
Troubleshooting
GeoIPDBFile directive is for Apache, not LSWS
GeoIP Rewrite Rules Infinite Loop
Be more specific than "GeoIP not working"
IP Does Not Return Certain SubDivision Information
IP Not Blocked Due to Out-of-date Database
MaxMind database update
IP2Location
Download IP2Location Database
Setup IP2Location database
Verify IP2Location
Change Your Source IP by Proxy
Method 1:
Method 2:
Set Rewrite Rules
Log
Troubleshooting IP2Location
More Information
Map MaxMind GeoIP2 Variables to IP2Location
Cloudflare Issues
mod_pagespeed
Websocket Proxy
Rewrite Rule Proxy
PHP Without Timeout
LSMCD for MultiUser
Compression
ECC Certificates Quick Start
OCSP Stapling on cPanel
Troubleshooting
Troubleshooting
Apache Migration FAQ
400 Error
403 Error
404 Error
500 Error
503 Error
Fix High Load
Server Issues
CloudLinux
Enabling Rewrite Logs
Toggle Debug Logging
Submit a Bug Report
Uninstall
Plesk
Plesk
Overview
Installation
Configuration
LiteSpeed Containers
Troubleshooting
Troubleshooting
General
403 Error
DirectAdmin
DirectAdmin
Overview
Installation
Configuration
FAQ
CyberPanel
CyberPanel
Overview
Enhance
Enhance
Overview
Interworx
Interworx
Overview
Installation
LSCache Setup
Webuzo
Webuzo
Overview
Benchmarking Tips
LiteSpeed Web ADC
LiteSpeed Web ADC
Overview
Installation
Configuration
Configuration
Basic Configuration
Additional Configuration
Cache Configuration
Security Configuration
ZeroConf Configuration
Commands Reference
Troubleshooting
Frequently Asked Questions
LSCache
LSCache
What is LiteSpeed Cache?
Basic Concepts
Getting Started
Troubleshooting
Tips
LSCache Plugins
LSCache Plugins
Drupal
Drupal
Overview
Installation
Configuration
Troubleshooting
FAQ
Joomla!
Joomla!
Overview
Installation
Configuration
Troubleshooting
FAQ
Laravel
Laravel
Overview
Installation
Configuration
Troubleshooting
FAQ
Magento
Magento
Overview
Installation
Configuration
Crawler Script
Troubleshooting
FAQ
MediaWiki
MediaWiki
Overview
Installation
Configuration
Troubleshooting
FAQ
OpenCart
OpenCart
Overview
Installation
Configuration
Troubleshooting
FAQ
PrestaShop
PrestaShop
Overview
Installation
Configuration
Crawler Script
Troubleshooting
FAQ
WordPress
WordPress
Overview
Installation
Beginner's Guide
Configuration
Configuration
Dashboard
Presets
General
Cache
CDN
Image Optimization
Page Optimization
Database
Crawler