Skip to content

Instantly share code, notes, and snippets.

@ajinkya-bhosale
Created December 20, 2014 16:15
Show Gist options
  • Save ajinkya-bhosale/951dea926e20e66167b1 to your computer and use it in GitHub Desktop.
Save ajinkya-bhosale/951dea926e20e66167b1 to your computer and use it in GitHub Desktop.
Allow or Deny Users By IP
# ALLOW USER BY IP
#<Limit GET POST>
# order deny,allow
# deny from all
# allow from 86.67.58.216
# allow from 117.222.4.100
#</Limit>
# BAN USER BY IP
<Limit GET POST>
order allow,deny
allow from all
deny from xxx.xxx.xxx.xxx
</Limit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment