Connecting Tech Pros Worldwide Forums | Help | Site Map

Copying Web Page Content - Disable

Matt
Guest
 
Posts: n/a
#1: Jul 23 '05
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.


RobB
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Copying Web Page Content - Disable


Matt wrote:[color=blue]
> When browsing a web page a user has the ability to highlight content[/color]
on[color=blue]
> 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.[/color]

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.

Randy Webb
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Copying Web Page Content - Disable


Matt wrote:[color=blue]
> 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?[/color]

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.
[color=blue]
> I assume there isn't but I have to try.[/color]

Your assumption is correct.


--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Richard Cornford
Guest
 
Posts: n/a
#4: Jul 23 '05

re: Copying Web Page Content - Disable


Matt wrote:[color=blue]
> 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.[/color]

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.


kaeli
Guest
 
Posts: n/a
#5: Jul 23 '05

re: Copying Web Page Content - Disable


In article <1115653451.667264.265060@o13g2000cwo.googlegroups .com>,
matt_marshall@manning-napier.com enlightened us with...[color=blue]
> 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?[/color]

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

askMe
Guest
 
Posts: n/a
#6: Jul 23 '05

re: Copying Web Page Content - Disable


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

Randy Webb
Guest
 
Posts: n/a
#7: Jul 23 '05

re: Copying Web Page Content - Disable


askMe wrote:
[color=blue]
> 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.[/color]

That doesn't work either. If you want to prevent people from copying
content, don't put it on the web.
[color=blue]
> Try to drag and copy a flash object or a pdf to see what I mean.[/color]

File>Save As. Hmmmmm
[color=blue]
>
> But why do you want to prevent people from copying your text?[/color]

Lack of knowledge of the web, and how it works is the #1 answer to that
question, even if people fail to realize it.
[color=blue]
> http://www.askblax.com[/color]

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
Lasse Reichstein Nielsen
Guest
 
Posts: n/a
#8: Jul 23 '05

re: Copying Web Page Content - Disable


"askMe" <askMe@askblax.com> writes:
[color=blue]
> 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.[/color]

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.
[color=blue]
> But why do you want to prevent people from copying your text?[/color]

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 - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
askMe
Guest
 
Posts: n/a
#9: Jul 23 '05

re: Copying Web Page Content - Disable



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

It works. It is why so many software companies have chosen that route.
[color=blue][color=green]
> > Try to drag and copy a flash object or a pdf to see what I mean.[/color]
>
> File>Save As. Hmmmmm[/color]

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.
[color=blue][color=green]
> >
> > But why do you want to prevent people from copying your text?[/color]
>
> Lack of knowledge of the web, and how it works is the #1 answer to[/color]
that[color=blue]
> question, even if people fail to realize it.[/color]

Partially correct.
[color=blue][color=green]
> > http://www.askblax.com[/color]
>
> Site not responding.[/color]

You're obviously a very lucky person.
[color=blue]
> But, if your responses in Usenet are indicative of the responses on[/color]
that[color=blue]
> site, its better *not* to ask blax.[/color]

You don't have to askblax if you don't want to. Nothing ventured,
nothing gained.
[color=blue]
> Read this groups FAQ before posting, it contains a ton of useful
> information.[/color]

For what?

http://www.askblax.com
[color=blue]
> --
> Randy
> comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup[/color]
weekly

askMe
Guest
 
Posts: n/a
#10: Jul 23 '05

re: Copying Web Page Content - Disable


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

Mark Preston
Guest
 
Posts: n/a
#11: Jul 23 '05

re: Copying Web Page Content - Disable


askMe wrote:[color=blue]
> Randy Webb wrote:
>[color=green]
>>askMe wrote:
>>[color=darkred]
>>>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.[/color]
>>
>>That doesn't work either. If you want to prevent people from copying
>>content, don't put it on the web.[/color]
>
> It works. It is why so many software companies have chosen that route.
>[/color]
Nope - copy the image, feed it into your OCR and you get the text.
Randy Webb
Guest
 
Posts: n/a
#12: Jul 23 '05

re: Copying Web Page Content - Disable


askMe wrote:
[color=blue]
> Randy Webb wrote:
>[color=green]
>>askMe wrote:
>>
>>[color=darkred]
>>>In order to prevent people from copying content from your page, you
>>>have to turn the text into a picture (or some other peculiar[/color][/color]
>
> object)
>[color=green][color=darkred]
>>>which is not able to be copied the same was as text.[/color]
>>
>>That doesn't work either. If you want to prevent people from copying
>>content, don't put it on the web.[/color]
>
>
> It works. It is why so many software companies have chosen that route.[/color]

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.
[color=blue]
>[color=green][color=darkred]
>>> Try to drag and copy a flash object or a pdf to see what I mean.[/color]
>>
>>File>Save As. Hmmmmm[/color]
>
>
> The question was how to prevent select, cut and paste and/or
> right-clicking to save.[/color]

And the answer is simple - You can NOT stop it. But again, you are
welcome to attempt to prove me wrong.
[color=blue]
> 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.[/color]

Is your knowledge of anything else better than your knowledge of the web
and the way it works? I hope so.
[color=blue][color=green][color=darkred]
>>>But why do you want to prevent people from copying your text?[/color]
>>
>>Lack of knowledge of the web, and how it works is the #1 answer to that
>>question, even if people fail to realize it.[/color]
>
>
> Partially correct.[/color]

No, totally correct.
[color=blue]
>[color=green][color=darkred]
>>>http://www.askblax.com[/color]
>>
>>Site not responding.[/color]
>
>
> You're obviously a very lucky person.[/color]

Irony is that you admit it. Odd.
[color=blue]
>[color=green]
>>But, if your responses in Usenet are indicative of the responses on that
>>site, its better *not* to ask blax.[/color]
>
>
> You don't have to askblax if you don't want to. Nothing ventured,
> nothing gained.[/color]

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

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
enrique
Guest
 
Posts: n/a
#13: Jul 23 '05

re: Copying Web Page Content - Disable


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

Richard Cornford
Guest
 
Posts: n/a
#14: Jul 23 '05

re: Copying Web Page Content - Disable


enrique wrote:[color=blue]
> If you display your content in a Flash movie, they
> can't copy it.[/color]

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.


kaeli
Guest
 
Posts: n/a
#15: Jul 23 '05

re: Copying Web Page Content - Disable


In article <1115835193.784404.67330@g49g2000cwa.googlegroups. com>,
enrique.pineda@gmail.com enlightened us with...[color=blue]
> If you display your content in a Flash movie, they can't copy it.[/color]


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

Randy Webb
Guest
 
Posts: n/a
#16: Jul 23 '05

re: Copying Web Page Content - Disable


enrique wrote:
[color=blue]
> If you display your content in a Flash movie, they can't copy it.[/color]

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?
askMe
Guest
 
Posts: n/a
#17: Jul 23 '05

re: Copying Web Page Content - Disable



Mark Preston wrote:[color=blue]
> askMe wrote:[color=green]
> > Randy Webb wrote:
> >[color=darkred]
> >>askMe wrote:
> >>
> >>>In order to prevent people from copying content from your page,[/color][/color][/color]
you[color=blue][color=green][color=darkred]
> >>>have to turn the text into a picture (or some other peculiar[/color][/color][/color]
object)[color=blue][color=green][color=darkred]
> >>>which is not able to be copied the same was as text.
> >>
> >>That doesn't work either. If you want to prevent people from[/color][/color][/color]
copying[color=blue][color=green][color=darkred]
> >>content, don't put it on the web.[/color]
> >
> > It works. It is why so many software companies have chosen that[/color][/color]
route.[color=blue][color=green]
> >[/color]
> Nope - copy the image, feed it into your OCR and you get the text.[/color]

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?

askMe
Guest
 
Posts: n/a
#18: Jul 23 '05

re: Copying Web Page Content - Disable


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

askMe
Guest
 
Posts: n/a
#19: Jul 23 '05

re: Copying Web Page Content - Disable


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

Mark Preston
Guest
 
Posts: n/a
#20: Jul 23 '05

re: Copying Web Page Content - Disable


askMe wrote:[color=blue]
> Mark Preston wrote:
>[color=green]
>>Nope - copy the image, feed it into your OCR and you get the text.[/color]
>
> True. But again, you cannot select, cut and paste.[/color]

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.
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#21: Jul 23 '05

re: Copying Web Page Content - Disable


askMe wrote:
[color=blue]
> In order to prevent people from copying content from your page, you
> have to turn the text into a picture[/color]

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).
[color=blue]
> (or some other peculiar object)[/color]

Which would be? Anything that can be downloaded can be stored.
[color=blue]
> 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.[/color]

Try to make a screenshot of it or just download the .swf file ...


PointedEars
Kendo
Guest
 
Posts: n/a
#22: Jul 23 '05

re: Copying Web Page Content - Disable



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

Richard Cornford
Guest
 
Posts: n/a
#23: Jul 23 '05

re: Copying Web Page Content - Disable


Kendo wrote:[color=blue]
> Check out the copy protect solutions available at
> http://www.artistscope.com[/color]
<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.


Closed Thread