Skip to content

Instantly share code, notes, and snippets.

@fernandiez
Created September 1, 2021 14:56
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 fernandiez/ce5c7fd2651bee5379ae9d84470bbf63 to your computer and use it in GitHub Desktop.
Save fernandiez/ce5c7fd2651bee5379ae9d84470bbf63 to your computer and use it in GitHub Desktop.
Bloqueo de IPs .htaccess - Allow Deny
# IPs whitelist - block
# deny all Ips
# allow only certain IPs or IP range
ErrorDocument 403 /error403.html
order deny,allow
deny from all
allow from xx.xx.xx.xx
allow from 55.99.66.111
allow from 55.99.66.0/23
allow from 55.99.66.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment