Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble with File extensions txt files are .cgi and i cant view them

Status
Not open for further replies.

madaxe

Technical User
Dec 21, 2004
44
US
Hi

Im New to this and you will have to fogive my stupidity, I read somewhere that it was best too name all text files .cgi so that nobody else can read them. Fair enough however all my log txt files are .cgi i now want to see them in an iframe or other means but it wont let me while they are .cgi if i change the extension back to .txt it works can anybody help??????


Madaxe



Please Help
 
I read somewhere that it was best too name all text files .cgi so that nobody else can read them"

That is not a good idea. If the file is executable then you would use the .cgi extension. Besides that, if you want to keep people from viewing your text files then change the permissions of the file or place the files in a directory protected using Apache's .htaccess

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top