Skip to content

Instantly share code, notes, and snippets.

@lucnap
Last active April 23, 2020 07:31
Show Gist options
  • Save lucnap/c250be1333475736ddd77ad2dea854ef to your computer and use it in GitHub Desktop.
Save lucnap/c250be1333475736ddd77ad2dea854ef to your computer and use it in GitHub Desktop.
Cloudflare htaccess restrict IP
SetEnvIF CF-Connecting-IP "10.20.30.40" MySecretIP
<Files index.php>
order allow,deny
allow from env=MySecretIP
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment