Copy Protect
Oct 25, 2005how can I copy protect the text content of my webpage?
View 23 Replieshow can I copy protect the text content of my webpage?
View 23 RepliesFrom any page, I want to be able to call a JS function that will do the
equivelant of select all, and copy. This data will then be posted to a
page that will log it.
This would be easy using copy/paste functionality but I don't want to
screw-up users copy/paste buffer. Anyone have an example of how to
retrieve all text with similar formatting of copying page to notepad
without using copy/paste functionality?
If 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>
How to protect .js files in a serious way?
View 3 Replies View Relatedif 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 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.
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?
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 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 RelatedI'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*?
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?
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.
I have a web page that uses an <iframe> to embed another document. I want the user to be able to "swap" the content of the main page with what's in the <iframe> and back again with the click of a button. I was able to do this using the location property, but I'm trying to avoid a trip to the server.
I'm thinking I can do this using DOM methods, but I'm having trouble getting it to work. Anyone know how to do this or where I could find some sample code?
If I create an object with the following:
var ob1 = new objMyDefinedObject();
then I assign it to a new variable.
var ob2 = ob1
I know that this isn't coping the object into a new variable, its just
another reference to the SAME object unlike
var a = 20;
var b= a;
Which creates a copy of the variable "a" and stores it in variable "b".
How can I copy my above object into a new variable rather than
reference the same object ? What I want to do is create the object, do
a load of property changes, then copy the object into a new variable
and do a load more property changes.
I have the follwoing code
<div id="detailtable" style="visibility:hidden">
<table id="detailtablehidden" width="100%" border="0">
....
</table>
</div>
I'm trying to copy the table inside to another table by appending it to
a td tag.
...
var the_table = document.getElementById("detailtable").innerHTML;
var td_content = document.createTextNode(the_table);
td.appendChild(td_content);
The problem right now is that I'm getting the table inserted as Text
instead of html. the follwing is an example.
<table _vpps_id="65" id="detailtablehidden"
border="0" width="100%"> <thead> <tr
_vpps_id="66"> <td _vpps_id="67">Student
Name </td> <td
_vpps_id="68">PaymentAmount</td> <td
I have a page with images and text. The image and text have their own Div's which have a class of either portimage or porttext
I want to be able to click on an image and for the text of the following porttext div to be displayed in another div called pinfo.
This is the code I have so far.
The jquery...
$(document).ready(function(){ $('.porttext').hide();
$('.portsite').click ( function () {
var str = $(this).next('.porttext').text();
$('#pinfo').html(str);
[Code]....
I have this line of code:
<input type='text' id='fCode' style="width:875px; height:22px;"/><br /><br />
Does anyone know how to add a copy button to so when you click it it copies everything in the box to your clipboard?
I have this in query:
That works fine for input:text boxes but doesnt work for dropdown menus.
How to i have the state dropdown to be the same for the other.
hello how can I copy and paste a div tag ???
View 3 Replies View RelatedIs it possible to do this: when clicking a button, info is selected and copied to computers "cache" (don't know exact name) ready for pasting in other application like Word?
View 3 Replies View RelatedIs there a way to get © to translate when using createTextNode ?
div.appendChild(document.createTextNode('Copyright © 1998-'+(new Date().getFullYear())+', SomeCompany'));
I was wondering if there is a way to have a link or button on my page that would copy everything on that page just by clicking it.
View 2 Replies View Related