By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,647 Members | 1,822 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,647 IT Pros & Developers. It's quick & easy.

Copying Web Page Content - Disable

P: n/a
When browsing a web page a user has the ability to highlight content on
a page (by holding down the left mouse button and dragging the mouse
over the desired content). Is there a way to disable this option? I
assume there isn't but I have to try.

Jul 23 '05 #1
Share this Question
Share on Google+
22 Replies


P: n/a
Matt wrote:
When browsing a web page a user has the ability to highlight content on a page (by holding down the left mouse button and dragging the mouse
over the desired content). Is there a way to disable this option? I
assume there isn't but I have to try.


That sounds ominous. Anyway...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript">

if ('undefined' != typeof document.onselectstart)
{
document.onselectstart = function()
{
return false;
}
}
else
{
document.onmousedown = function()
{
return false;
}
document.onmouseup = function()
{
return true;
}
}

</script>
</head>
<body>
<p>
When browsing a web page a user has the ability to highlight content on

a page (by holding down the left mouse button and dragging the mouse
over the desired content). Is there a way to disable this option? I
assume there isn't but I have to try.
</p>
</body>
</html>

Yet another chapter in the endless war against the user.

Jul 23 '05 #2

P: n/a
Matt wrote:
When browsing a web page a user has the ability to highlight content on
a page (by holding down the left mouse button and dragging the mouse
over the desired content). Is there a way to disable this option?
No, but some people may lead you to believe otherwise. They may also
lead you to believe you can disable the mouse buttons but you can't do
that either.
I assume there isn't but I have to try.


Your assumption is correct.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #3

P: n/a
Matt wrote:
When browsing a web page a user has the ability to
highlight content on a page (by holding down the left
mouse button and dragging the mouse over the desired
content). Is there a way to disable this option? I
assume there isn't but I have to try.


Broadly no there is not. IE provides an - onselectstart - event that may
be cancelled, and any browser exposing the selection itself to scripts
should allow that selection to be cleared. Both approached are dependent
on client-side scripting and can be disabled, either individually or by
disabling scripting on the browser. Neither will do anything to prevent
the copying of page content, because there are so many other ways of
doing that anyway, drag selection is just the immediate and obvious
approach.

Cancelling/clearing selections can be useful for other reasons, such as
avoiding undesirable visual artefacts while, for example, animating the
mouse dragging of an arbitrary absolutely positioned page element as
part of GUI.

Richard.
Jul 23 '05 #4

P: n/a
In article <11**********************@o13g2000cwo.googlegroups .com>,
ma***********@manning-napier.com enlightened us with...
When browsing a web page a user has the ability to highlight content on
a page (by holding down the left mouse button and dragging the mouse
over the desired content). Is there a way to disable this option?


With javascript, kinda sorta, as others have posted.
But bear in mind that for some of us, disabling script takes one click. For
others, two or three. ;)

--
--
~kaeli~
Acupuncture is a jab well done.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #5

P: n/a
In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar object)
which is not able to be copied the same was as text. Try to drag and
copy a flash object or a pdf to see what I mean.

But why do you want to prevent people from copying your text?

http://www.askblax.com

Jul 23 '05 #6

P: n/a
askMe wrote:
In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar object)
which is not able to be copied the same was as text.
That doesn't work either. If you want to prevent people from copying
content, don't put it on the web.
Try to drag and copy a flash object or a pdf to see what I mean.
File>Save As. Hmmmmm

But why do you want to prevent people from copying your text?
Lack of knowledge of the web, and how it works is the #1 answer to that
question, even if people fail to realize it.
http://www.askblax.com


Site not responding.

But, if your responses in Usenet are indicative of the responses on that
site, its better *not* to ask blax.

Read this groups FAQ before posting, it contains a ton of useful
information.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #7

P: n/a
"askMe" <as***@askblax.com> writes:
In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar object)
which is not able to be copied the same was as text. Try to drag and
copy a flash object or a pdf to see what I mean.
Well, you can select text in a pdf :)

Anyway, if people can see the content, they can also copy it, if not in
any other way, then by rewriting it letter by letter (and screen-capturing
images). For reasonable web pages, there are lots of simpler ways, but in
the end, the content is not safe.
But why do you want to prevent people from copying your text?


Indeed.

This is a security question. One should never try to implement
security without first assessing the threat it is supposed to counter.

What is the threat from people copying text - i.e., what losses can it
lead to. Whatever counter-measures once chooses, they should not cost
more than the potential loss.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #8

P: n/a

Randy Webb wrote:
askMe wrote:
In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar object) which is not able to be copied the same was as text.
That doesn't work either. If you want to prevent people from copying
content, don't put it on the web.


It works. It is why so many software companies have chosen that route.
Try to drag and copy a flash object or a pdf to see what I mean.


File>Save As. Hmmmmm


The question was how to prevent select, cut and paste and/or
right-clicking to save. Sure, you can save a whole web page, but the
parts that are not text will only be saved as objects (uneditable 9x
out of 10) which is how they were presented on the web.

But why do you want to prevent people from copying your text?


Lack of knowledge of the web, and how it works is the #1 answer to

that question, even if people fail to realize it.
Partially correct.
http://www.askblax.com


Site not responding.


You're obviously a very lucky person.
But, if your responses in Usenet are indicative of the responses on that site, its better *not* to ask blax.
You don't have to askblax if you don't want to. Nothing ventured,
nothing gained.
Read this groups FAQ before posting, it contains a ton of useful
information.
For what?

http://www.askblax.com
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup

weekly

Jul 23 '05 #9

P: n/a
If people copy your text, how is it a security question? Copying code
maybe? Scripting on the events? Please explain.

Thanks.

http://www.askblax.com

Jul 23 '05 #10

P: n/a
askMe wrote:
Randy Webb wrote:
askMe wrote:
In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar object)
which is not able to be copied the same was as text.


That doesn't work either. If you want to prevent people from copying
content, don't put it on the web.


It works. It is why so many software companies have chosen that route.

Nope - copy the image, feed it into your OCR and you get the text.
Jul 23 '05 #11

P: n/a
askMe wrote:
Randy Webb wrote:
askMe wrote:

In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar
object)
which is not able to be copied the same was as text.
That doesn't work either. If you want to prevent people from copying
content, don't put it on the web.

It works. It is why so many software companies have chosen that route.


Are you as anally retentive as you seem to be? Attempting to prevent the
copying of *anything* on the web is a futile attempt. Its the very basis
of the WWW to start with - *sharing* of information. But, you are
welcome to prove me wrong. Post a (working) URL to a page, and I will
copy/paste whatever is on it, and tell you how I did it. Even if it is
nothing more than opening Notepad and typing it myself. It is *not* safe
on the web.
Try to drag and copy a flash object or a pdf to see what I mean.
File>Save As. Hmmmmm

The question was how to prevent select, cut and paste and/or
right-clicking to save.


And the answer is simple - You can NOT stop it. But again, you are
welcome to attempt to prove me wrong.
Sure, you can save a whole web page, but the parts that are not text will
only be saved as objects (uneditable 9x out of 10) which is how they were
presented on the web.
Is your knowledge of anything else better than your knowledge of the web
and the way it works? I hope so.
But why do you want to prevent people from copying your text?


Lack of knowledge of the web, and how it works is the #1 answer to that
question, even if people fail to realize it.

Partially correct.


No, totally correct.
http://www.askblax.com
Site not responding.

You're obviously a very lucky person.


Irony is that you admit it. Odd.
But, if your responses in Usenet are indicative of the responses on that
site, its better *not* to ask blax.

You don't have to askblax if you don't want to. Nothing ventured,
nothing gained.


I might try later, it could provide me with some entertainment.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #12

P: n/a
If you display your content in a Flash movie, they can't copy it.

Jul 23 '05 #13

P: n/a
enrique wrote:
If you display your content in a Flash movie, they
can't copy it.


Unless they run the Flash movie though an example of the software
designed to turn a SWF back into an FLA, and then use Flash to extract
the original text. (or any of a number of alternative approaches that a
little google searching will quickly turn up)

Richard.
Jul 23 '05 #14

P: n/a
In article <11*********************@g49g2000cwa.googlegroups. com>,
en************@gmail.com enlightened us with...
If you display your content in a Flash movie, they can't copy it.

LOL
That's a good one.

There's a big difference between "can't" and "most likely won't bother to".
It's a bit of a pain, but it certainly IS possible.
I have various means of getting what I want. Including an OCR program to
extract text from graphics so I don't have to re-type it all. Exports it all
nice into Word for me. Neat, eh? ;)

--
--
~kaeli~
Cthulhu saves our souls and redeems them for valuable
coupons later.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #15

P: n/a
enrique wrote:
If you display your content in a Flash movie, they can't copy it.


Thanks, I needed that laugh. Flash decompiler's are a dime-a-dozen when
you know where to look on the web.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Jul 23 '05 #16

P: n/a

Mark Preston wrote:
askMe wrote:
Randy Webb wrote:
askMe wrote:

In order to prevent people from copying content from your page, youhave to turn the text into a picture (or some other peculiar object)which is not able to be copied the same was as text.

That doesn't work either. If you want to prevent people from copyingcontent, don't put it on the web.


It works. It is why so many software companies have chosen that route.

Nope - copy the image, feed it into your OCR and you get the text.


True. But again, you cannot select, cut and paste. Creating the
object deters copying. Most people will not bother to run stuff
through OCR, reduce it to bytes, or deal with object manipulation.

All things are possible, yes. Software companies that use objects as a
deterrent have also *allowed* the decompilers (oh I forgot the tech
term (but, you know what I mean, right?)), for exposure to their
product and to enhance what their tech writers *forgot* to explain that
might help you complete your task. Is conversion to byte code,
modifying the extension of the output, or other manipulation of objects
that were not designed to be *easily* copied, cut and pasted posing a
security problem? Sandboxes getting any better, iow?

Jul 23 '05 #17

P: n/a
>> Unless they run the Flash movie though an example of the software
designed to turn a SWF back into an FLA, and then use Flash to extract
the original text. (or any of a number of alternative approaches that a

little google searching will quickly turn up)

Richard.
<<

I thought even flash had a setting to prevent extraction/copying of swf
files.

Jul 23 '05 #18

P: n/a
>> There's a big difference between "can't" and "most likely won't
bother to". <<

Exactly! There is freeware abound for converting just about anything
to anything else.
http://www.askblax.com

Jul 23 '05 #19

P: n/a
askMe wrote:
Mark Preston wrote:
Nope - copy the image, feed it into your OCR and you get the text.


True. But again, you cannot select, cut and paste.


Can once you have the text. The point is to show that anything you
*send* on the 'net can be *received* and once you have received it you
can do what they hell yu like with it - if it is worth your time.
Jul 23 '05 #20

P: n/a
askMe wrote:
In order to prevent people from copying content from your page, you
have to turn the text into a picture
Rubbish. OCR exists, and using images only would not only increase
loading time and bandwidth usage but also reduce usability in other
ways (think e.g. of disabled images for exactly that reason).
(or some other peculiar object)
Which would be? Anything that can be downloaded can be stored.
which is not able to be copied the same was as text. Try to drag and
copy a flash object or a pdf to see what I mean.


Try to make a screenshot of it or just download the .swf file ...
PointedEars
Jul 23 '05 #21

P: n/a

Check out the copy protect solutions available a
http://www.artistscope.com

Security solutions available as inserts to ASP, PHP and other scripte
portals can be found at http://www.copysafe.ne

--
Kend
-----------------------------------------------------------------------
Kendo's Profile: http://www.highdots.com/forums/member.php?userid=8
View this thread: http://www.highdots.com/forums/showthread.php?t=57779

Jul 23 '05 #22

P: n/a
Kendo wrote:
Check out the copy protect solutions available at
http://www.artistscope.com

<snip>

"Could not connect to remote server: http://www.artistscope.com", which
is what everyone has been saying; if you don't want it copied don't put
it on the web.

Richard.
Jul 23 '05 #23

This discussion thread is closed

Replies have been disabled for this discussion.