禁用浏览器的视图源选项以避免用户能够读取代码 [英] Disable view source option of browser to avoid user from able to read code

查看:75
本文介绍了禁用浏览器的视图源选项以避免用户能够读取代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在asp.net c#webforms中创建的网站。在我们右键单击页面后在浏览器上运行网站后,有一个选项可以查看源代码。任何人都可以通过它看到代码。风险很大!如何避免用户这样做?



我尝试过:



网站在asp.net中创建c#webforms

解决方案

你无法阻止用户表单这样做,有很多方法可以获得html视图 - >源

website created in asp.net c# webforms. after running website on browser when we right click on page then there is one option that view source. by which any one can able to see a code. is it quite risky! how to avoid user from able to do this ?

What I have tried:

website created in asp.net c# webforms

解决方案

You can't stop the user form doing this, there are lots of ways to get the html besides view->source.


这篇关于禁用浏览器的视图源选项以避免用户能够读取代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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