
ProtectZ Installation:

Open forward.cgi in a text editor like NotePad.
Do not use a word processor or any program that
inserts formatting characters. 

Edit your path to perl 5. It usually looks like this:

/usr/bin/perl

Notice that your path to perl in the script is preceeded by
the symbols #!.

The #! that you see preceeding the path is called the shebang.
It tells your visitors browser that this is a script and it is
required for the script to work. So the first line in the
script should look like this:

#!/usr/bin/perl

If the path to perl on your server is not /usr/bin/perl 
you must edit this line so that it points to the proper
path. If you don't know the path to perl, ask your host.
They can give you this information.

At this point I recommend that you save the forward.cgi file
as myforward.cgi. This way you will have the original, except
with the proper path to perl, to refer back to.

Just open the file and click Save As, and enter myforward.cgi
as the file name.  

Now open ipscript.cgi and put the proper path to perl in it
as well. That is all you need to do to this script.

Next edit the following line in the myforward.cgi script:

	@permit = ('YourDomain.com');

This should be the domain that will be calling the script.

For example, if you are using PayPal, this line would look like:

	@permit = ('paypal.com');

If you want multiple domains referring to the script,
you should list them like this:

	@permit = ('yourdomain.com','seconddomain.com');

For example, if you have your own merchant account with Authorize.net
and you also want to refer to the script from your own domain, 
just list them like this:

	@permit = ('yourdomain.com','authorize.net');

Don't forget to put single quotes around each domain name.	


Now you need to define your default URL.  This is the web page 
you want to send users to that came from a URL that was not
permitted in the script by the @permit designation, or a 
visitor that tried to access your protected page without paying
or completing your form. 

We have included a web page called busted.html that you may use
as your default page. You can use that page or create your own.
Change the $default variable listed below to point to that page.

$default = "http://www.yourdomain.com/busted.html";

Make sure all of the graphic files are in the same directory as
the busted.html file. Also, change the first Click Here link so
that it points to your website. Change the first one only.

The next step is to define your protected page.  This must be
the exact URL that you want to hide from your visitors.
Edit the URL in the line below to point to your protected page.

@forward = ("protect", "http://www.YourDomain.com/somefolder/ProtectedPage.htm");

If you want to use this script for multiple forms you could simply 
add extra lines with your redirect/success URLs.  For example:

@forward = ("protect","http://www.YourDomain.com/somefolder/ProtectedPage.htm",
	"protect2","http://www.YourDomain.com/somefolder/ProtectedPage2.htm",
	"protect3","http://www.YourDomain.com/anyfolder/ProtectedPage3.htm"
	);

Now save the file.

Upload myforward.cgi and ipscript.cgi to the cgi-bin of your web site. 
Make sure you upload using ASCII and not binary. We recommend CuteFTP
because it is very easy to learn and use, and it detects which
type of upload should be used, ASCII or binary.

Now change the file permissions of myforward.cgi and ipscript to CHMOD 755. 

Upload busted.html or whatever page you want to use as the default
to the main directory of your web site.

All that's left to do now is to replace the URL in your form with
the following URL:

http://www.yourdomain.com/cgi-bin/myforward.cgi?lock=protect


For instance, if the normal URL in your PayPal code is:

<input type="hidden" name="return" value="http://YourDomain.com/thanks.htm">

Change that line to:

<input type="hidden" name="return" value="https://YourDomain.com/cgi-bin/myforward.cgi?lock=protect">


WARNING: If you will be referring to the script from a secure 
server, as indicated by the https:// rather than http:// in 
the original return code, then you must make some modifications.
This is the case with merchant accounts and PayPal.

If that is the case you have two choices:

1. The script must reside on a secure server and be referred to 
as shown above with the https, rather than http.

If your site is not on a secure server and you use the https, then
your visitor will be sent to your default, busted.html, page even
if they paid. So be sure to test this first.

You can tell whether yours is or not by using https://www.YourDomain.com
(notice the s after http) instead of http://www.YourDomain.com as your 
site address in your browser. 

If you get the same page, ProtectZ will work with PayPal.
If you don't, ask your host about it. Most hosting companies now provide 
secure hosting at no additional cost, but some still do not.

(Personally, if mine did not I would get another host. If your host
is not up-to-date on that, it is probably also extremely slow; and
a page that loads slowly will lose a lot of impatient surfers.)

If your website is secure you can skip down to 'One final tip:'.

2. If you are not on a secure server, you can create a transition page
on another domain. If you don't have another domain, there are many
free sites available. Be sure to list that domain name as one of
the domain names in your @permit statement. On that page...

use the original code that you have for the download page, i.e...

<input type="hidden" name="return" value="http://YourDomain.com/thanks.htm">

But on this page, do not have a download link. Instead put a link
to the script like this:

<a href="http://YourDomain.com/cgi-bin/myforward.cgi?lock=protect">
Click Here</a> To Download.

This will call the script and send them to the real download page
listed in the script. No secure server is needed with this method.

This second method can be a bit complicated if you've never done it
before, so if your domain is hosted on a secure server, method 
number 1 is much simpler.
------------------------------------

One final tip: Don't have your download file and download page in
the same folder or directory, or in the root directory. For instance,
in the url http://YourDomain.com/thanks.htm, thanks.htm is in the
root directory. Not a good idea.

ProtectZ is now ready to protect your files. Test it now by 
typing into your browser the URL link that is on your order
page. For instance, ProtectZ's is
https://www.protectz.com/cgi-bin/myforward.cgi?lock=protect

If you have installed ProtectZ correctly, you should be taken
to the Busted page since you did not click on the link on your
download page.

The only way to access your protected file is to click on the
link on your download page, and since your download page is only
referred to in the script, no one will know the address of your
download page.

To test the script live, change the amount charged to $1 and 
when you are sure it works correctly, don't forget to change it back.

This will stop 95% of prospects who attempt to steal your product.
To make it 99.9 to 100%, do the following:

Copy the section of your code that contains your order link on your
order page into your windows clipboard. This is easily done by
highlighting what you want to copy and pressing the letter C while
holding down the Ctrl key. It does not matter how much or how little 
of it you copy. Just remember the exact portion you copied.

Now double click on the HTMLSentinel.exe file that was included with
ProtectZ. Click on Step #2 in that program, scroll down and click on
Method #2. Paste what you copied into the box and click on 'Encrypt
page now'. Your encrypted code will appear in the box below it the
one you just pasted to.

Select all of the contents in this second box and copy it to your
clipboard. (Ctrl-C)

Now close that window and press the Esc key to exit HTMLSentinel.

Open your order page again and highlight what you originally copied.
Now Paste what you encrypted by pressing the letter V while holding
down the Ctrl key. Now save the file and upload it over the original.

This extra step gives you double-barreled protection.

You cannot use Method #3 with ProtectZ but you can use it on any
other part of your webpage or any other page. You can even encrypt
the entire page although I would not recommend that if you want
the search engines to list it.

If you are unable to install the script or can't get it working 
properly, we can install or troubleshoot it for you for only $37.  


Web to http://ProtectZ.com/install.html
and sign up for it. We'll get right on it.


Now your website is protected, but what about your affiliate links
to other websites. Sure you can encrypt them now, but that alone
will not protect you. To guard your affiliate links and prevent
prospects from stealing your commissions you need Click Bank Guard.

Don't be fooled by the name. This service will protect any affiliate
link, not just affiliate programs that use ClickBank.

Isn't it time you protected your income from other programs? There 
are no scripts to install with Click Bank Guard. It is amazingly
fast and simple. You will wonder how you ever got along without it.

Check it out at http://ClickBankGuard.com

Many people confuse this with another product called Easyclickguard,
but it is entirely different. You owe it to yourself to find out 
about this invaluable product.


ProtectZ 2.0
Copyright Peak Marketing 2001 
