如何在网页中禁用右键单击和ctrl + c [英] How to disable right click and ctrl+c use in a web page

查看:255
本文介绍了如何在网页中禁用右键单击和ctrl + c的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我是PHP的新手并且有使用PHP创建页面的任务

在该页面中我需要禁用所有按键操作以及鼠标

操作甚至还有菜单操作,即打印屏幕。我有

只有用于鼠标右键单击禁用的java脚本代码,但确实如此。
不允许我禁用ctrl + c。所以我需要一些帮助才能解决我的任务。等待你的回复。


谢谢,

Amar

Hi All,

I am a newbie to PHP and have the task to create a page using PHP where
in that page I need to disable all key operation as well as mouse
operation even also the menu operation that means printscreen. I have
only the java script code for mouse right click disable but that does
not allow me to disable to do ctrl+c. So I need some help that can
solve my task. Waiting for your replies.

Thanks,
Amar

推荐答案

2006年12月20日06:55:02 -0800,在comp.lang.phpAmar

< gh ********** @ gmail.com> ;

< 11 ********************** @ 80g2000cwy.googlegroups。 comwrote:
On 20 Dec 2006 06:55:02 -0800, in comp.lang.php "Amar"
<gh**********@gmail.com>
<11**********************@80g2000cwy.googlegroups. comwrote:

> |大家好,
|
|我是PHP的新手,并且有使用PHP创建页面的任务
|在那个页面我需要禁用所有键操作以及鼠标
|操作甚至也是菜单操作,即打印屏幕。我有
|只有鼠标右键单击的java脚本代码禁用,但确实如此不允许我禁用ctrl + c。所以我需要一些可以帮助的帮助解决我的任务。等待你的回复。
>| Hi All,
|
| I am a newbie to PHP and have the task to create a page using PHP where
| in that page I need to disable all key operation as well as mouse
| operation even also the menu operation that means printscreen. I have
| only the java script code for mouse right click disable but that does
| not allow me to disable to do ctrl+c. So I need some help that can
| solve my task. Waiting for your replies.



你想要做的是从浏览器中控制操作系统

功能因此它是不可行的。


javascript鼠标右击也很容易被规避。

----------------------- ----------------------------------------
jn ****** @ yourpantsyahoo.com.au :脱掉裤子回复

--- -------------------------------------------------- ----------

What you are wanting to do is to control the operating systems
functionality from within a browser therefore it is not doable.

The javascript right mouse click is easily circumvented also.
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------


2006年12月20日06:55:02 -0800,Amar < gh ********** @ gmail.comwrote:
On 20 Dec 2006 06:55:02 -0800, "Amar" <gh**********@gmail.comwrote:

>我是PHP的新手并且有创建页面的任务使用PHP在那个页面中我需要禁用所有键操作以及鼠标操作甚至是菜单操作,这意味着printcreen。我只有用于鼠标右键单击禁用的java脚本代码,但这确实不允许我禁用ctrl + c。所以我需要一些可以解决我的任务的帮助。等待你的回复。
>I am a newbie to PHP and have the task to create a page using PHP where
in that page I need to disable all key operation as well as mouse
operation even also the menu operation that means printscreen. I have
only the java script code for mouse right click disable but that does
not allow me to disable to do ctrl+c. So I need some help that can
solve my task. Waiting for your replies.



您好Amar


首先,PHP是一种服务器端语言,因此无法控制

客户端的浏览器,是您发送给它的HTML和Javascript。


如果您需要完全控制用户的环境,我建议

你看看创建一个Flash或Java applet并在其中放置你需要的任何内容

但它不会阻止任何观众复制屏幕。

您看到许多网站禁用了右键单击或复制功能,但

这不会给页面内容提供非常基本的保护

...记住,任何人都可以查看浏览器的

缓存,或者只需点击打印屏幕即可。将整个屏幕复制到

剪贴板。

Chris R.

Hi Amar

Firstly, PHP is a server-side language and so has no control of the
client''s browser, beyong the HTML and Javascript you send to it.

If you need total control of the user''s environment I would suggest
you look at creating a Flash or Java applet and put whatever contents
you need inside that but it won''t stop any viewer copying the screen.
You see many sites that disable the right-click or copy facility but
this doesn''t give anything more than very rudimentary protection of
the page contents ... remember anyone can look into the browser''s
cache or just simply hit "Print Screen" to copy the whole screen to
the clipboard.

Chris R.


Amar写道:
Amar wrote:

大家好,


我是PHP的新手,并且有使用PHP创建页面的任务

在该页面我需要禁用所有键操作以及鼠标

操作甚至还有菜单操作,这意味着printcreen。我有

只有用于鼠标右键单击禁用的java脚本代码,但确实如此。
不允许我禁用ctrl + c。所以我需要一些帮助才能解决我的任务。等待你的回复。


谢谢,

Amar
Hi All,

I am a newbie to PHP and have the task to create a page using PHP where
in that page I need to disable all key operation as well as mouse
operation even also the menu operation that means printscreen. I have
only the java script code for mouse right click disable but that does
not allow me to disable to do ctrl+c. So I need some help that can
solve my task. Waiting for your replies.

Thanks,
Amar



为什么你会在地球上想要创造如此可怕的功能?


但幸运的是它无法完成。


Erwin

Why on Earth would you ever want to create such horrible functionality?

But luckily it cannot be done.

Erwin

这篇关于如何在网页中禁用右键单击和ctrl + c的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆