Skip to content

Instantly share code, notes, and snippets.

@budiantoip
Created August 25, 2023 04:21
Show Gist options
  • Save budiantoip/3178772efd24d6436e9caaa431739d2c to your computer and use it in GitHub Desktop.
Save budiantoip/3178772efd24d6436e9caaa431739d2c to your computer and use it in GitHub Desktop.
Apache Cheatsheet

Limit HTTP method based on IPs

<Limit POST PUT DELETE>
 order deny,allow
 deny from all
 #allow from localhost
 #allow from 127.0.0.1
 allow from xxx.xxx.xx.xx
</Limit>

# Allow anyone to do GETs and HEADs
<Limit GET HEAD>
 order deny,allow
 allow from all
</Limit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment