Skip to main content
Home / Code Snippets / HTAccess / Denying and Allowing Access

Denying and Allowing Access

Deny except from specific IPs

Order deny,allow
Deny from All
Allow from xxx.xxx.xxx.xxx
Allow from xxx.xxx.xxx.xxy

Allow except from specific IPs

Order deny,allow
Allow from All
Deny from xxx.xxx.xxx.xxx
Deny from xxx.xxx.xxx.xxy
icon-link icon-logo-star icon-search icon-star