All Scripts backed by 8 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
Count It
Form Mailer + Attachments
Client File Manager
Da Godfaddah
Dropbox
FAQ Builder
ManageHT
RegisterHT
Mailing Bank
Page Updater - Text
Page Updater - WYSIWYG
PS Guestbook
PS Lightning Search
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

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.
Utility Name: redirect_html.pl
Platform: UNIX or Linux
Requires: Perl4 or higher


I write programs for people. I write programs that constitute entire sites. These programs/sites sometimes have thousands of hits per day and thousands of users. This translates into hundreds or thousands of directories!

What happens if someone calls a URL to a directory where there is no default page? The entire contents of that directory is displayed!!! Once that happens, who knows what sort of information a person can obtain ?!?!?!?!?!?

This utility will prevent that. Starting October 1st, 1999, all my new scripts use this utility. I am slowly going back and adding it to previous scripts. What this utility does is add a default page to every single directory your script creates! This way, the user is blocked from seeing the contents of that directory and you didn't have to spend the time creating and uploading hundreds of default pages!

It is very simple to use:

  1. In your script, you must first 'require' this utility with the following line:

    require 'redirect_html.pl';

  2. Next, at any and EVERY point in your script you create a directory you simply make the very next line a call to the sub. It only requires one parameter and that is the absolute path to the directory you want protected.

    redirect_html([abs_path_to_directory]);

Here are some examples showing how to use it:

mkdir($directory_path, 0766);
redirect_html($directory_path);

mkdir("/home/usr/html/name/$var/directory", 0777);
redirect_html("/home/usr/html/name/$var/directory");

mkdir('/home/usr/html/data/admin/pass', 0766);
redirect_html('/home/usr/html/data/admin/pass');
DEFAULT PAGE: This utility assumes a default page name of "index.html". If this is not your servers default page name but rather it's something like: main.html or index.htm then all you have to do is pass that page name as a second parameter to the script. i.e.

redirect_html($directory_path, 'default.html');

Full explanation is in the utility documentation.

  ©2008 PerlServices.net. All Content and Media. Site hosted by LinuxHostingPlans.com