The Best Way To Protect Javascript Code?

Dec 9, 2006

if speed, size is not a matter, i just want to protect the code as much
as possible, any library or tools do you think is the best solution
right now?

i know there is not a perfect solution, but as good as it can be is
okay...

p.s. need to be cross brower.

View 7 Replies


ADVERTISEMENT

How To Protect JS Code From Analysis By Competent People?

May 16, 2003

I'm developing very advanced web-based intranet application that uses a lot of very complex JavaScript for interface, including charting via ActiveX components and other processing.

Obviously I'm tempted to make the analysis of the javascript code very hard for people who may wish to steal my code and/or ideas.

Is there is anything I can do to make analysis of .js code difficult for *professionsals*?

View 3 Replies View Related

How Can I Protect A Webpage In Javascript?

Aug 17, 2006

In practice you can't. While you could create a suitable
encryption system with a password in the page, the level of
support you need to do this means it's always simpler to do it
server-side. Anything that "protects" a page other
than the current one is definitely flawed.

View 8 Replies View Related

Copy Protect

Oct 25, 2005

how can I copy protect the text content of my webpage?

View 23 Replies View Related

Protect Myself From XSS Scripting?

Mar 9, 2010

If i use this to protect myself from XSS scripting, do you think that it will be enough? code...

View 2 Replies View Related

Protect Your Content

May 30, 2003

IM new to all this but the following code will deter visitors to your site, who have limited knowledge, copying your content. where nothing is 100% it will stop the chancers taking your hard work and using it as their own, I hope.

<script language="JavaScript">
<!--
var popup="Sorry, right-click is disabled.

This Site Copyright ©2002-2003";
function noway(go) {
if (document.all) {
if (event.button == 2) {
alert(popup);
return false;
}
}
if (document.layers) {
if (go.which == 3) {
alert(popup);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=noway;
// --> </script>

<script language="JavaScript1.1">
<!-- var debug = true;
function right(e)
{
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
alert('This Page is fully protected! copyright ©2002-2003');
return false;
}

return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
//-->
</script>

View 1 Replies View Related

How To Protect .js Files In A Serious Way?

Sep 19, 2002

How to protect .js files in a serious way?

View 3 Replies View Related

Protect Login Against Hackers?

Oct 24, 2010

How do i protect a login against hackers and sql injection ???

View 6 Replies View Related

Is There A Way To Protect Saving Web Pages?

Jul 13, 2004

I once came across some sites that prevent saving their pages by disabling the 'save' option in the File menu. I remember it was done. But I forgot the url.

How are they doing this? Is it possible to do so with Javascript? It will be great if someone provide me with links for such articles or scripts.

View 5 Replies View Related

Password Protect A - Form - Content ?

Mar 29, 2010

I have a website where i sell items. I need to make it so a customer can go to the site and place a password to purchase a item. Customers sees a item and clicks on "buy now" It can not be a inconvenience where it will prompt for a user/password.

I would like to place a password box, and once a password is entered they will be able to select the "buy now" button. Simple...yes. But i search for 3 hours via the power of google and have yet to find a solution. I want everything to stay on the same page...if possible.

I have seen places like wordpress and joombla do password protect content but i guess it is because the use frames. I would like to do this with just JS and HTML.

View 3 Replies View Related

JQuery :: Protect Page Which Loaded By $.ajax?

Apr 23, 2009

For example I have a page: [URL] On this page I use $.ajax:

$.ajax({
type: "GET",
data: "data=123456",
dataType: 'html',

[Code].....

where temp.php - [URL] On temp.php I use requests for DB with param from $.ajax - data=123456. How I can protect page temp.php? For example, somebody typing [URL] and then he can get all results. I found one solution - using if($_SERVER['HTTP_REFERER'] == "http:// mysite.com/content/") {....} But Am not shure that it can realy protect my page?

View 2 Replies View Related

Password Protect - Type In Is Completely Visible

Apr 29, 2009

I made this JavaScript that password protects a page. But the password you type in is completely visible! I want it so that the password are those black dots for each letter....

Here is the script:

View 6 Replies View Related

Password Protect Files / Sections On Web Page ?

Nov 2, 2009

I wanted to know is it possible to password protect some files in web page?For example, If someone wants to download file, browsers requests password(one for all visitors), idea is that some files and/or sections of web site is accessible to those who know the password..

View 9 Replies View Related

How To Insert Javascript Code Within Javascript?

Jan 7, 2006

I would like to know how to write javascript such that, a part of it isnt considered as script, & rather as HTML. Code:

Ok, the layer div can be written using document.write. But, Google ad itself is a javascript isnt it. How can it be written into this? How does this work?

View 3 Replies View Related

Simple Password Protect - Stop Going Back To The Page With The Form After Submit It

Feb 22, 2009

Let me start out by saying that this is for a small-time page with absolutely zero valuable information. PHP or server-side is way beyond the scope of my goals for the project.

Basically, I have a form on a page which I want to use to submit a password. However, I have realized that using the form submit always makes the browser return to the page with the form.

Well, that's not good when I want to redirect using javascript!

My javascript is:

Code:

My form HTML is:

Code:

How can I get this to stop going back to the page with the form after I submit it?

View 3 Replies View Related

How To Run An Asp Code In Javascript?

Jul 23, 2005

I am working on a piece of code for an academic experiment and it
puzzled me for days, any help?

I use javascript to sort a table in a html page. bascially, a user can
click on any attributes and the javascript code will rank the contents
of the table based on that attribute. This is done.

Now I want to record the click information into an access database.
basically, wheneve the user click an attribute, I want to use asp code
to insert the click information (userid, attribute_clicked) into an
access database.

My current solution is use window.open in javascript and in the open
function, I insert the url of the asp. something like this:

var nW = window.open('', 'newwnd', 'width=0,height=0,left=0,top=0');
nW.location.href = "desc.asp?subjectid="+ subjectid + "&item=" +
attributeinfo;
nW = null;

However, the problem is there is always a popup windows appears when
the code was executed.

What i want to know is if there is anyway to let the asp code running
in the background invisibly by user?

View 2 Replies View Related

Javascript Code For Pop Ups

Nov 6, 2006

I have copied from a site a javascript code for my web site to create a
pop up. This works fine on older versions of browser but not the most
recent. Whilst I have been searching for some new code to replace the
old code I have also learnt that the javascript will not always work
as it may not be enabled.

Therefore does anyone have some code that I could copy that will work
fine on all browser and if the javascript is not enabled.

View 4 Replies View Related

JavaScript And ASP.net VB Code?

Jun 16, 2010

I am looking at doing a asp.net web-page in VB code with java-script as well. I want to pull the information from the database(SQL server or Access) and then feed that information to my java-script code. Is that the way to do it or can you do Access or SQL in java-script pretty easy?

View 2 Replies View Related

Javascript Code To Sum Up Totals

Jul 23, 2005

First part I'm banging my head against the wall on is about the amounts
of the Amount fields along the right to automatically equal the PETTY
CASH SUB-TOTAL field. So, the amount in this PETTY CASH SUB-TOTAL
field comes up automatically. Also, I need to have the amount in the
TOTAL AMOUNT field come up automatically as being the sum of the PETTY
CASH SUB-TOTAL and the PER DIEM SUB-TOTAL fields. Please see the
following as an HTML document to see what I'm talking about......

View 3 Replies View Related

How To Add Javascript Code Dynmically?

Oct 26, 2005

I need to add some javascript code block dynamically to a web page.
I looked into the various postings at various groups but none seems to
be solving my problem.

Among the approaches suggested first one is to create a script element
and set its properties (src etc) and then adding this script element to
the head element.

This works good for a dynamically including the files. But, in my case
I do not have any files but generating the content dynamically which
should be available to other javascript functions in the page. The
script that I need to add dynmically is given Code:

View 4 Replies View Related

Malicious JavaScript Code,

Jan 27, 2006

AIUI, it was not all that long ago when the threat to personal users,
was attachments that when executed compromised machines with keyloggers,
trojans, etc.

Now it seems that the big problem is reading a webpage or an HTML e-mail
and getting affected through the scripting. My understanding is that
the script downloads the malicious program from the web and sets it to
run on start up through the start-up folder or in the registry.

I don't know much about this; can someone suggest a good web site to
start learning a bit more about these threats. I have googled, but I am
not quire sure of the best search terms, and since there is so much
information out there, a site that experienced people endorse would be a
lot of help.

In particular, it seems as if JavaScript dowloading a trojran without
the user clicking an attachment is a big problem.

View 28 Replies View Related

How To Encrypt JavaScript Code?

Jul 11, 2006

Any one knows how to encrypt javascript code... other way than escape()
and unescape() [not is encrypt but a way to protect source code ????

View 3 Replies View Related

Mozilla JavaScript Code

Jul 20, 2005

Is there any documentation or reference for the Mozilla web browsers.
Some of my older Netscape code doesnt work and the IE code still doesnt work ..

View 2 Replies View Related

Tidy Up Javascript Code

Jul 20, 2005

Is an index page. I have javascripts to open up submenus. But tehre are
quiter a lot of them, all simialr. Is there a way to unify all that
javascript into a single function?

View 3 Replies View Related

Should I Code For Users Without Javascript?

Oct 2, 2005

Should I code for users without javascript? I don't know of anybody who doesn't have javascript turned on, but I have seen stats that say users without javascript run as high as 10%. I went to music.yahoo.com, I saw that they didn't code for no-javascript users, leading me to believe the no-javascript is a highly rare group.

View 12 Replies View Related

Javascript Certificate Maker Code?

Jul 23, 2005

Can anyone give me the code or point me in the direction of a simple
javascript certificate maker so that users can input there name and
date so as to use on my site?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved