Protecting Javascript

J

Jacques

In my web site, the user pays through Paypal, then access a page with some
javascript. I want to protect the javascript code, I know it's impossible but
I want to make the access to it difficult. So I found that:
http://www.digitalmidget.com/help/noclick/copy4.php
It shows how to remove the toolbar. The problem is that the user has to
click to a link before accessing the protected page. While in my case, the
user pay using Paypal then Paypal goes directly to my page with javascript.
So I can't control the paypal page and I don't want to insert an additional
page after the user pays where he would have to click to access my protected
page.
Is there another way to protect my page?
 
R

Rob Giordano \(Crash\)

Didn't you follow the whole explanation on digitalmidget?


| In my web site, the user pays through Paypal, then access a page with some
| javascript. I want to protect the javascript code, I know it's impossible
but
| I want to make the access to it difficult. So I found that:
| http://www.digitalmidget.com/help/noclick/copy4.php
| It shows how to remove the toolbar. The problem is that the user has to
| click to a link before accessing the protected page. While in my case, the
| user pay using Paypal then Paypal goes directly to my page with
javascript.
| So I can't control the paypal page and I don't want to insert an
additional
| page after the user pays where he would have to click to access my
protected
| page.
| Is there another way to protect my page?
 
J

Jacques

I did.
In http://www.digitalmidget.com/help/noclick/copy4.php , you have to click
on the link "click right here for no toolbar page" in order to go to the page
with no toolbar.
My problem is that after the user pays through Paypal, the Paypal page will
go directly to my page with javascript code. And I don't control the Paypal
page, I can't put a code similar to copy4.php. So is there another way to
protect my javascript code?
I could use the digitalmidget.com code by telling Paypal to go to an
intermediary page where the user has to click in order to go to my page with
javascript but it's not direct, it is a bit heavy.
I know that on Windows 2003 Server, it's possible to protect a file with
security so it can be executed but not read. Is it possible with my .js file?
 
T

Tom [Pepper] Willett

No matter how you code serverside, a js file is just a text file which is
downloaded from the server and viewed in a browser. anyone can then save the
file ...
 
T

Thomas A. Rowe

You can't protect anything the is viewable in page source.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Tom [Pepper] Willett said:
No matter how you code serverside, a js file is just a text file which is downloaded from the
server and viewed in a browser. anyone can then save the file ...
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
Jacques said:
I did.
In http://www.digitalmidget.com/help/noclick/copy4.php , you have to click
on the link "click right here for no toolbar page" in order to go to the page
with no toolbar.
My problem is that after the user pays through Paypal, the Paypal page will
go directly to my page with javascript code. And I don't control the Paypal
page, I can't put a code similar to copy4.php. So is there another way to
protect my javascript code?
I could use the digitalmidget.com code by telling Paypal to go to an
intermediary page where the user has to click in order to go to my page with
javascript but it's not direct, it is a bit heavy.
I know that on Windows 2003 Server, it's possible to protect a file with
security so it can be executed but not read. Is it possible with my .js file?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top