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


ADVERTISEMENT

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

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

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

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 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

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

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 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

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

Page Password Protect - Automatically Link To Another Page

Nov 3, 2010

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.

View 4 Replies View Related

JQuery :: Featured Content Slider Using UI Not Functioning Within DHTML Tab Menu Content

Dec 20, 2010

1) Script Title: Ajax Tabs Content Script (v 2.2) and Featured Content Slider Using jQuery UI

2) Script URL (on DD): [URL]

3) Script URL of Featured Content Slider Using jQuery UI [URL]

4) Script URL of my implementation of both script. [URL]

5) Problem: I've integrated the featured content slider in one of the default content section of the tab menu as you can see on the link on point 4. The slider is working perfectly when until i click on other tab menu and then back tab menu 1. The slider seize to work no more and worst the other featured content slides are appearing below the first one.

View 6 Replies View Related

JQuery :: SlideUp Div Replace - Loads The Content Specified Into A Single Div - Replacing The Content Depending On Which Function Is Called

Nov 22, 2010

I have previously developed two scripts, both of which work really well, however I want to amalgimate them together if possible? My first script loads the content specified into a single div, replacing the content depending on which function is called, it also displays a loading gif during a timeout of 2 seconds. Here is the page:

[Code]...

View 1 Replies View Related

Calculating Height Of Iframe Content After Inserting The Content?

Nov 10, 2010

I'm using JQuery to write content into an otherwise empty iframe like so:

Code:

$('#ifrmID').contents.find('html').html(htmlContent);

The content is coming from an Ajax request. The content gets used more than once on the page for other purposes which is why I don't simply change the iframe src--I have to do an ajax request regardless so I'm trying to avoid multiple calls.

After I load the content, I need modify the height of the iframe so it fits snuggly around the content.

Calculating the height isn't a problem with the exception that it's not always correct and I think it's because the calculation is happening before images have downloaded.

I don't seem to be able to rely on a `load` or `ready` event to delay the calculation. The load event is the only one that tiggers on a change of iframe content, but it doesn't see the new content.

Code:

$('iframe').each(function () {
$(this).load(function () {
alert($(this).contents().find('html').html());
});
});


This will output '<html><body></body></html>' even though I have successfully inserted different content.

Any suggestions on what I'm doing wrong, or if it's possible to do what I want reliably?

Note that a general JS solution will be appreciated as much as a JQuery one.

View 4 Replies View Related

Toggle Content Script: Content Shown When JavaScript Is Off

Jul 21, 2007

I use a small piece of JS code to make different elements on the page show/hide when clicking a link, based on id:

function toggle( targetId ){
if (document.getElementById){
target = document.getElementById( targetId );
if (target.style.display == "none"){
target.style.display = "";
} else {
target.style.display = "none";
}
}
}
Then HTML looks like this:
<a href="#" onClick="toggle('news'); return false;">Show/hide news</a>
<div id="news" style="display:none">BlahBlahBlah</div>

This works. Initially the element is hidden (with style="display:none" property of the element), and the script gets its id and changes its display property to "block" when clicking on a link.

But when Javascript in a browser is turned off, the elements to show are all hidden, and there's no way to see the content of the element.

My question: is there a way to hide toggled elements on page load with JS, so that when it's turned off the hidden content is shown?

View 5 Replies View Related

Jquery :: Reveals The Hidden Content When 'pushes' The Content Above Or Below

Jul 20, 2010

Most Jquery I have seen 'pushes' the content above or below it up or down the page as it reveals the hidden content, the above example reveals the content over the top without pushing out any other content which is what I am looking for I have tried to take the code and everything works aside from those tabs!! I was hoping somebody has a link to another site that does the same effect

View 1 Replies View Related

JQuery :: Replacing DIV Content With Other DIV Content From Same Page?

Mar 18, 2010

I have content in hidden (invisible) DIV elements on a page that I want to load into another DIV element on same page. I need to replace content currently in a DIV with that coming from another DIV. DIV ontent could be a P element or a P and IMG element.

View 4 Replies View Related

JQuery :: Load Individual Pages Of Content Into A Main Content Area - Error "top Is Null Or Not An Object"

Apr 11, 2010

I have a page with links that use jQuery to load individual pages of content into a main content area. On one of these pages, I want to be able to link to a specific anchor. (ie, when you click the link named "exec" on the main page, it loads the "services" page and then scrolls to the "exec" div.

[Code]...

Everything works beautifully in FF and Opera but in IE, I get an error message saying "top is null or not an object". It's referencing the line where "target_offset.top" is called, but this is legitimate syntax, so I don't understand the problem.

View 4 Replies View Related

JQuery :: Replace Content By Other Content?

Apr 8, 2010

What is the similar in Jquery of :

document.getElementById('toto').innerHTML = document.getElementById('tata').innerHTML;
$('#totoi).contents('#tata');

So is not contents.

View 6 Replies View Related

Dynamic Content Not Using Head Content

May 17, 2011

I am using xmlhttp.open();xmlhttp.send(); to send a php content to a div. This php content is again using the same method to get php content from a further page.The content of the div, does not seem to be using the css and javascript files defined in the calling pages <head> section.

Javascript file: scripts.js
client.php ----> loads data from: display_client.php
display_client.php ----> loads data from: display_brand.php

[code]...

View 5 Replies View Related

Replacing A Div Content With Content From Another File

Jul 7, 2011

I am working on a page, which has menus on the left side in one div, that, when clicked should display a proper content on the right side, in another div. Since the content is rather long I have it in a separate file, so I am trying to come up with a function that will replace the right div contect with that external file content. I believe the function i should use looks something like this:

function ReplaceDiv( DivId, NewData )
{
var data_div = document.getElementById( DivId);
if( data_div )
{
data_div.innerHTML = NewData;
}
}

I tried to use this in my page as following: <a href="" onclick="ReplaceDiv(MyDiv, NewDataFile.php )">Menu Item #1</a> But it does not do what I need it to do. The menu link disappears and the right div content stays the same

View 3 Replies View Related

JQuery :: Load External Content Into <div Class="content">?

Apr 17, 2011

how can i use .load() or .get() to load external content into div?

i have code below but doesnt work? i dont know what is the problem.

$(document).ready (function(){
$("tabs1").click(function(){
$("content").load("about.php");
});
});

View 3 Replies View Related







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