如何限制用户从网页复制文本 [英] How to Restrict user to copy the text from webpage
本文介绍了如何限制用户从网页复制文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在其中创建了一个页面
我已经阻止了右键单击,因此没有人可以复制该鼠标,但是仍然可以在页面的视图源中找到该文本,因此我可以复制...现在如何防止这种情况....
我不想显示内容...
请在这方面提供帮助...
I have created a page in that
I have blocked the rightclick so no one can copy that, but still the text is available, in the page''s view source, so i can copy that... now how can i prevent this....
I dont want to show the contents...
Please help in this regard...
推荐答案
将内容显示为图像. ;)
Display the content as an Image. ;)
我认为这正是您所需要的...
http://www.codeproject.com/tips/42554/Javascript-hack-to-disable-Right-Click-and-Text-Se.aspx [
I think this is what exactly you require...
http://www.codeproject.com/tips/42554/Javascript-hack-to-disable-Right-Click-and-Text-Se.aspx[^]
Cheers. :)
您无法阻止人们进入View-> Page Source或View-> Source,因此除非您希望将整个页面创建为图像,否则您将无法使用运气.
You can''t stop people from going View -> Page Source or View -> Source so unless you want to create your whole page as an image you''re out of luck.
这篇关于如何限制用户从网页复制文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文