uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Tech Support
       Support Policy
       Knowledge Base
       Reference Sites
       Software Piracy
       Legal Notices
       Privacy Policy
       Reseller Info
       Contact Us
       Site Map
How can I hid my categoryname.txt from the browser?

Knowledge Base Lobby : uDirectory Support Conference : uDirectory Configuration Questions
Aug-17-18 01:43 PM EST
Original Message
How can I hid my categoryname.txt from the browser?
Author Moderator on 09-27-1999 at 17:22 (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?

Table Of Contents
  Hide categoryname.txt from browser Moderator, 1999-09-27 17:24:45 (1)

Messages In This Discussion
         1. Hide categoryname.txt from browser
        Author Moderator on 09-27-1999 at 17:24 (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 script....just in case.

2) Locate the following section of code in the script:


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 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!


© 2003 Microburst Technologies, Inc.