473,748 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copying Web Page Content - Disable

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
22 6957
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.onsele ctstart)
{
document.onsele ctstart = function()
{
return false;
}
}
else
{
document.onmous edown = function()
{
return false;
}
document.onmous eup = 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
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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #3
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
In article <11************ **********@o13g 2000cwo.googleg roups.com>,
ma***********@m anning-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
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
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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #7
"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/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #8

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.javas cript FAQ - http://jibbering.com/faq & newsgroup

weekly

Jul 23 '05 #9
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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3654
by: Robert Tarantino | last post by:
Hello, I am trying to find a way to create a scheduled task or service that will copy my local profile folders under "Documents and settings" to a network drive. This would allow me to restore my settings if my profile became tampered with or corrupt. Is there any sample code available out there? -Robert
2
2317
by: Jon Haakon | last post by:
Hi, I'm developing a websolution using ASP and DHTML technology that's running on a MS IIS webserver. My solution is frame based with a toolbar on top, a hidden frame for scripts in the middel (all actions run here), and on bottom html pages will be shown. The bottom page contains forms witch is developed with a 3ed party design tool from Acrobat and stored as HTML. It wouldn't be any problem storing these files as html. But the main...
3
3043
by: Tjerk Wolterink | last post by:
Hello i have xml code like this: <page:page xmlns:page="namespacefor page"> <page:section> <page:header> <b>Hello</b>There </page:header> <page:content> --- HTML CODE like: <i>Y</i>es i like bla bal <center>bla</center><img> alblalba
4
3951
by: Els | last post by:
Hi, I would like an opinion on the following: I have a page which is made up of background-images with transparent linked images in front of it, which on hover show text in CSS popups. Due to appropriate alt text, anyone viewing the page with images turned off, will see the alt text instead, and on hover will see the popups.
102
7388
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
1
4525
by: iMedia User | last post by:
I have a site where I want to use the Web form validators in two separate forms on a single page. One form allows existing users to log in while the second one allows new users to register. The problem is that if I use the Web Form validation tags, it treats them all as one form (ie...if someone is trying to use the login form, they get an error saying that they have to enter values in the registration form and vice-versa). Any ideas on...
42
3884
by: smerf | last post by:
Using javascript, is there a way to trap an external page inside a frame? I've seen scripts to break out of frames, but nothing to keep a page trapped in a frame.
6
2009
by: Mark C | last post by:
how do you prevent users from copying ctrl-c content from your textboxes. I know how to do this with IE which is <body onSelectStart="return false;"> but does not work in Mozilla Thanks Mark www.quiznetonline.com
1
3543
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
I would like to gray out or disable all of page content while a pannel is visible and active. I know there is a way to do this. psudo code 1. click "Join" 2. display panel and disable all other elements on the page 3. click cancel or procede: re-enable page elements and hide the panel OK, i obviously know how to display the panel, but the disable part ....
0
8822
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9528
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9236
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8235
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6792
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4592
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.