Internets and Intranets
To ensure that Internets and intranets don”t co-mingle, it is important to provide unique platforms for each. If that ca
nnot be done, try some of the following ideas.
In most systems the default file is called index.html. This file name can be changed in the configuration file. I
t also can be a list of file names, and it will return the first name on the list. This allows the default file to be a Server Side
Include file (index.shtml) or a series of possible files {index.shtml index.html main.html README badlocation.html}. In this series
it would start looking to return the first file in the series, and would continue until it hit the last file. If no default file is
found, it will then try to index the directory if permitted. This is where things get scary, security-wise. In some cases it might b
e useful to allow someone to get a directory listing. If you are using the directory to allow people to access it like an FTP archiv
e, then it”s nice to let the system take over the listing tasks.
What about having listing on and not having a default file in
the directory, like an image library? Do you really want your image library to become a place where people from all over the net can
drop by and take images? As we have said, a directory listing can be a very useful tool (it is useful when you are doing developmen
t and want to be able to just jump around the directory loading files), but it is also something that is open to potential security
abuses. The easiest way to ensure that the directory listing services are not abused is to make sure the last filename in your defau
lt list is something like badlocation.html. Then, make sure that every directory has a file in it called badlocation.html that links
to a single file. This file should indicate to the user that he or she has come to a location that they could not have reached by f
ollowing the links on the site. (They should be aware that the owner of the site would prefer that they follow the links that you pr
ovide.)
Allowing and Disallowing Groups
.htaccess Magic
, an internet.com Web site.
Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved
Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.