All Scripts backed by 10 years in business, free support, free updates and a 30 day money back guarantee.
Download Purchase Programming F.A.Q. Support Contact
Commercial Perl Scripts
All Form Pro Updated
Count It
Form Mailer + Attachments
Client File Manager
Da Godfaddah
Dropbox Updated
FAQ Builder
HT Manager Updated
RegisterHT
Mailing List Server
Page Updater - Text
Page Updater Pro Updated
PS Guestbook Updated
PS Lightning Search Updated
Quick File Mailer
Quick MySQL
Select-A-File
Upload Center
Free Perl Scripts
Access Log Viewer
All Form
Epoch Converter
Error Log Viewer
Invoice Center
PS Upload
Question Manager
Quick CHMOD
QuickHT
Site File Finder
Site File Lister
SSI Tag Maker
Perl Modules
Monger Calendar
Monger File
Monger Mail
Monger Persist
JavaScript Generators
PopUp Windows
Meta Gen
RGB / Hex Converter
Page Colors
Sudoku
Tutorials and FAQs
Cookies
Using CuteFTP
Using WS_FTP
Installing Scripts
Debugging
Utilities
env_vars.pl
backup.pl
restore.pl
check_email.pl
date.pl
dayname.pl
fileage.pl
format_length.pl
format_url.pl
getfile.pl
parse.pl
redirect_html.pl
Free Services
Epoch Converter
TLD Registries
RGB/Hex FInder
Colour Checker
ASCII Codes
Policies
Terms and Conditions
Privacy Policy
Refund Policy
Site Map

Form Processor with no SPAM from robots.

Anti-spam, anti-robot, anti-flame, Guestbook for your website.

Manage Remote websites from your website. Allow clients to update sections of their own web pages.

Secure file manager with upload progress meter. A printer's best friend. Find out more.

Program Name: QuickHT
Original Release: March 2001
Cost: Free
Platform: UNIX or Linux
Requires: Perl5+


  1. Disclaimer
  2. Quick Setup
  3. Checking a directory for existing Basic Authentication Protection
  4. Adding Basic Authentication Protection to a directory
  5. Removing Basic Authentication from a directory.
  6. Potential dangers in using this program.
Please read the Perl Services Licensing Agreement

By downloading, purchasing, acquiring and/or implementing any PerlServices software, you agree to be bound by the terms and conditions of the distribution policy.

To Top



Quick Setup
This program can easily be set-up within sixty seconds.
  1. Make sure the path to Perl at the top of the script "quickht.cgi" is correct.

  2. Upload the script to your web server via FTP in ASCII format. Upload the language file to the same directory in ASCII format.

  3. CHMOD the quickht.cgi script to 755. CHMOD the language file to 766 (If that doesn't work, you will have to use 777).

  4. Call the script through your browser, it's all set-up.
NOTE: If you are running this script on a secure server and you find that the server isn't resolving the server name correctly, you can specify the actual URL to the script around line 55 in the $ScriptURL variable. Leave this blank unless you have a problem resolving the script URL.

To Top




Checking a directory for existing Basic Authentication Protection
In the "Directory Abs-Path" text box, specify the full absolute path to the directory you wish to check. Make sure this absolute path does start with a forward slash and does NOT end with a forward slash. Note that your domain spaces path from root is displayed at the top of the page. This is the value returned by $ENV{'DOCUMENT_ROOT'}.

Click the "Confirm" button. This will re-fresh the page and the results will be displayed in the recovery area. Note that the test is performed by looking for the .htaccess and .htpasswd files in the tested directory. Here is a screen shot of the results after finding these files are not in our directory we are looking at:



To Top




Adding Basic Authentication Protection to a directory
In the "Directory Abs-Path" text box, specify the full absolute path to the directory you wish to protect. Make sure this absolute path does start with a forward slash and does NOT end with a forward slash. Note that your domain spaces path from root is displayed at the top of the page. This is the value returned by $ENV{'DOCUMENT_ROOT'}.

Now enter a user name for the protection. You will have to enter it twice, once in each of the boxes side by side.

Now enter a password for the protection. You will have to enter it twice, once in each of the boxes side by side.

Now click the "Protect" button. The directory will be protected and you will see the confirmation in the recovery area. Here is a screen shot of the results page:



To Top




Removing Basic Authentication from a directory.
In the "Directory Abs-Path" text box, specify the full absolute path to the directory you wish to remove protection from. Make sure this absolute path does start with a forward slash and does NOT end with a forward slash. Note that your domain spaces path from root is displayed at the top of the page. This is the value returned by $ENV{'DOCUMENT_ROOT'}.

Click the Remove button. The results of the removal will be displayed in the recovery area. Note that removal of Basic Authentication is an all or nothing proposition. This function simply deletes the .htaccess and .htpasswd file from the protected directory. If you have an .htaccess file in the directory for other server configuration issues, do not use this program on it. Instead, you will have to manually edit it by hand.

Here is a screen shot of the removal confirmation screen:



To Top




Potential dangers in using this program.
There are several dangers in using this program. Here is the short list and what you can do to avoid making them:

  1. Inadvertently Locking Out Your Site: When you initially display the page or when you refresh the page (using the "Refresh" button), the domains root web space absolute path is displayed in the "Directory Abs-Path" text box. If you enter the user names and passwords without modifying this path, you will lock out your entire website. Always check the absolute path before clicking any of the buttons. The recovery area will always print out the last absolute path submitted, get in the habit of checking that after submitting a function.

  2. Locking out the wrong directory: As with the above example, you might mis-type the absolute path and inadvertently lock out the wrong directory. Always check the abs-path twice before submitting a function. Always check the absolute path before clicking any of the buttons. The recovery area will always print out the last absolute path submitted, get in the habit of checking that after submitting a function.

  3. Damaging Server Configurations for a directory: If the directory you are protecting or the directory you wish to remove protection from already has a .htaccess file in it, you can destroy some sever configurations. UNIX servers will use .htaccess files to specify certain configuration options for a directory. Therefore, using this program to add protection will destroy that .htaccess file and create a new one that only contains the specifications for Basic Authentication protection. If you attempt to remove protection from a directory that you did NOT use this program to add it to, you could delete a .htaccess file that has server configuration options for the server. If you perform a "Confirm" function, and the results shows there is a .htaccess file but NO .htpasswd file, then you can be certain this .htaccess contains configuration options for the server. In this instance, contact your virtual host/support department for instructions on adding Basic Authentication protection to the directory.

    Therefore, ALWAYS perform a "Confirm" function BEFORE using this program to add protection to the directory. Why? Some servers will not display a .htaccess file in your FTP client, therefore, just because you can't see it doesn't mean it isn't there.

    REMEMBER: This program only does what YOU tell it to. If you inadvertently damage a server configuration file, the responsibility is yours. Make sure you know what your doing before you utilize this program.


To Top




  ©2009 All rights reserved, PerlServices.net. Website hosting by LinuxHostingPlans.com