▼  Site Navigation Main Articles News Search  ▼  Anime + Manga Anime Reviews Anime Characters Gallery Screenshots Manga Reviews  ▼  Misc Links to Webcomics Bible Quotes About Older Musings
site version 7.3
htaccess –– allow only certain addresses
written by: admin


Date Written: 3/6/10 Last Updated: 4/17/10

<Limit GET POST>
order deny,allow
deny from all
allow from 1.2.3.4
allow from 1.2.3.5
</Limit>


This code will ban all people except for the ip addresses you allow.  This example shows how to ban everyone except those from a single user.  Place the htaccess file in the folder you want it to apply to and name it .htaccess.  All sub folders will be affected by the presence of this file as well.  If you include a file from this folder the include file will only show up if you are on the allowed list.


htaccess alters the way files in a folder can be accessed.
cookies are a way of storing small amounts of data on the client's computer.
sessions are a way of storing larger amounts of data on the server, which behave similar to cookies.  Sessions tend to disappear after the visitor leaves your site unless the behavior of the session has been set to remain longer.

TAGS: flatfile
copyright 2005–2024