http.conf Allow,Deny Access Tips

Some bits of info about http.conf mods to restrict or allow access to the web server based on IP Addresses and access types…

<Directory /home/foouser/public_html/wiki>
<Limit GET POST OPTIONS>
order deny,allow
deny from all
allow from 128.154.x.34
allow from 128.134.143.35
allow from 128.124.138.19
allow from 128.166.176.234
</Limit>
</Directory>

<Directory /home/foouser/public_html/similie_mit/galaxy_nodes>
<Limit GET POST OPTIONS>
order deny,allow
deny from all
allow from 128.154.x.34
allow from 128.134.143.35
allow from 128.124.138.19
allow from 128.166.176.234
</Limit>
</Directory>

limits.conf
<Limit GET POST OPTIONS>
order deny,allow
deny from all
allow from 128.154.x.34
allow from 128.134.143.35
allow from 128.124.138.19
allow from 128.166.176.234
</Limit>

It could include comments and commented-out lines

128.154.x.34 # foo.example.com
128.134.143.35 # Joe’s machine at widget.com
128.124.138.19 # Joe’s home machine
# 128.166.176.234 # PHB (disabled – he never uses it)

and even time-limited access directives

128.154.x.34 – foo.example.com (until further notice)
128.134.143.35 -20090729 Joe’s machine at widget.com (until 29th July)
128.124.138.19 20090730-20090901 Joe @ gadget.org (30th Jul – 1 Sept)
128.134.143.35 20090902- Joe back at widget.com from 2nd Sept
# 128.166.176.234 – PHB (disabled – he never uses it)