Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndreiTelteu/e8aa1e86aeaf268c234127b8f5c442ba to your computer and use it in GitHub Desktop.
Save AndreiTelteu/e8aa1e86aeaf268c234127b8f5c442ba to your computer and use it in GitHub Desktop.
Show Real Visitor IP Instead of CloudFlare IPs - the config version /// the web ui version is here: https://openlitespeed.org/kb/show-real-visitor-ip-instead-of-cloudflare-ips/
useIpInProxyHeader 2
accessControl {
allow ALL, 173.245.48.0/20T, 103.21.244.0/22T, 103.22.200.0/22T, 103.31.4.0/22T, 141.101.64.0/18T, 108.162.192.0/18T, 190.93.240.0/20T, 188.114.96.0/20T, 197.234.240.0/22T, 198.41.128.0/17T, 162.158.0.0/15T, 104.16.0.0/13T, 104.24.0.0/14T, 172.64.0.0/13T, 131.0.72.0/22T
}
serverName
user www-data
group www-data
priority 0
autoFix503 1
enableIpGeo 0
useIpInProxyHeader 2
adminEmails root@localhost
accessControl {
allow ALL, 173.245.48.0/20T, 103.21.244.0/22T, 103.22.200.0/22T, 103.31.4.0/22T, 141.101.64.0/18T, 108.162.192.0/18T, 190.93.240.0/20T, 188.114.96.0/20T, 197.234.240.0/22T, 198.41.128.0/17T, 162.158.0.0/15T, 104.16.0.0/13T, 104.24.0.0/14T, 172.64.0.0/13T, 131.0.72.0/22T
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment