Htaccess

From Wiki
  • Directory Browsing
Options +Indexes
# IndexIgnore *.wmv *.mp3 *.avi
  • Disable Directory Browsing
Options All -Indexes


  • Block Users
<limit GET POST PUT>
order deny,allow
deny from $badip
allow from all
</limit>


  • Allow only LAN
order deny,allow
deny from all
allow from 192.168.0.0/24


  • Redirect
Redirect old.html /http://domain.com/new.html
Redirect /olddir http://domain.com/newdir


Password Protection