How To Protect .js Files In A Serious Way?
Sep 19, 2002How to protect .js files in a serious way?
View 3 RepliesHow to protect .js files in a serious way?
View 3 RepliesI 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 Relatedhow can I copy protect the text content of my webpage?
View 23 Replies View RelatedIf i use this to protect myself from XSS scripting, do you think that it will be enough? code...
View 2 Replies View RelatedIM 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>
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.
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.
How do i protect a login against hackers and sql injection ???
View 6 Replies View RelatedI 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.
I have designed a mail service in java.In my compose page,i want to attach some excel files of text files and to send it.After sending i want to store it my database.Then how can i download or open that file after opening that recipient mail inbox.
View 1 Replies View RelatedI 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.
I have the following JavaScript (see below). The script requests an XML file from the server and displays it on the page.The script works fine when the requested XML file is stored on the same server as the script.The problem is when I try requesting an XML file from an external server such as the National Weather Service. I get an error. If I take the XML file from the National Weather Service and save it to my server it works. Why can't I use my script to request XML files stored on external servers?
Javascript Code
Code:
window.onload = initAll;
var xhr = false;
function initAll() {
document.getElementById("makeTextRequest").onclick = getNewFile;
[code]....
In my quest to implement ajax for the first time i've hit a brick wall. i've been searching for hours for a solution but with no success. Here is the problem.
[Code]...
why is it not working? my PHP code is outputting the contents of the xml document.
I want to write a javascript to list of all files in a folder including files in the subfolders. This is for the scorm purpose to list all the files. some examples are listing files but not listing the files inside the subdirectories. I want the file's full path like C:Documentsjavascriptwilson.js like this.
View 5 Replies View RelatedFor 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?
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:
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*?
I have four folders and each folder has one images, let say ( images-one.jpg, images-two.jpg, images-three.jpg, images-four.jpg). now,in index.php page there are four buttons, each buttons for each images. if i clicked button numer two for images-two.jpg, and then it will show that images name from that folder in index.php page. and then if i reload same index.php page or refreshed same page, i want to show SAME images that I clicked before which is images-two.jpg. how can i write that code to show images from four files, each files are in each folder.
View 1 Replies View RelatedLet 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?
I am new to javascript but I can usually get examples of simple scripts I need to work, but can't figure this one out. I am trying to link to this page (link1.html) from another page and I want to password protect it. If the password is correct, I want to automatically link to another page (link2.html).
The reason I am trying to do it this way is if I don't I get a message saying IE is preventing scripts or ActiveX from running. If I don't click to allow it to run then it will automatically display the content of the page (link1.html) I am trying to protect. I will make link1 blank and put my data in link2.
And I realize this is a very low level of security.
What is the correct way to work with multiple language JavaScript files? So how to use your PHP language variables in your JavaScript files? The way I do it now is create JavaScript files like 'script_js.php' like this:
[Code]...
The problem is, I might want to change the html I include based upon variables passed between web pages.My problem is I don't know how to include html files in html files using javascript! How would you do this?
View 1 Replies View RelatedI have some Flash SWF games on my website with advertising banners on them.
People access a certain game by going to
http://www.mysite.com/flashgame.htm. With IE no problem. But in Firefox they
can type in http://www.mysite.com/flashgame.swf and bypass my banners. The
banners help pay for me hosting these games.
Is there a way with javascript that I can tell when they are going directly
to the swf file instead of going to the htm page? And redirect them to the
htm file?
I need to change like 500 .eml files to .xls files.
Is this even possible?]
In lets say I have an HTML document that has this in it:
<script type="text/javascript" src="file1.js"></script>
<script type="text/javascript" src="file2.js"></script>
I am trying to use a function that is defined in file 1 inside file 2. Its not working because its telling me that the function is undefined. Is there any way to make one file "see" the functions inside the other file in javascript?
I have a question. Is it possible to write a text file using JavaScript?
View 2 Replies View Related