www.uburst.com www.uburst.com

"How can I hid my categoryname.txt from the browser?"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

uDirectory Configuration Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"How can I hid my categoryname.txt from the browser?"
Posted by Moderator on Sep-27-99 at 05:22 PM (EST)
I noticed that if someone wants to type in the categoryname.txt in the browser, that they will see the password and other information for those in that cateogory. Any way to shield this from the public?
Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

Hide categoryname.txt from browser, Moderator, Sep-27-99, (1)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "Hide categoryname.txt from browser"
Posted by Moderator on Sep-27-99 at 05:24 PM (EST)
In order to hide the .txt files so that visitors cannot read them, you will need to create a new directory so that the .txt files are not located in the same directory as the .html pages. Below are the steps to do this:

1) Back up your current version of the udirectory.pl script....just in case.

2) Locate the following section of code in the udirectory.pl script:

#---------------------------------------------------------
# GLOBAL VARIABLES
#---------------------------------------------------------

It will be located near the top of the script...just below the configuration questions.

3) A few lines down in this section you will see the following line:

$gData_directory = $gHtml_directory;

Right now, this value is set to the same value that you specified as your $html_directory in question #4 of the script setup. (Something like $html_directory = "../listings/";)

4) Change the $gData_directory parameter to point to a new directory....some directory where all of the uShop .txt files will be located. For example:

$gData_directory = "../my_data_directory/";

This could even be your cgi-directory...which is usually cannot be listed by visitors to your site:

$gData_directory = ""; # The current directory - your cgi-bin.


5) Save the udirectory.pl script and transfer it back to your server.

6) On your server, create the directory that you specified in step 4 above.

7) Give the new directory that you created in step 6 above read, write, and execute permissions. (chmod 777).

8) Transfer all of the .txt files from your $html_directory into this new $gData_directory.


And that should do it!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.