如何使用ISS设置隐藏css和javascript [英] How to hide css and javascript using ISS setting

查看:178
本文介绍了如何使用ISS设置隐藏css和javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何在Web应用程序中隐藏CSS / Java Script文件。如果有人在Chrome中查看用户FireBug / Resource,任何人都可以查看上面的详细信息说文件。如果有人知道Path,也可以直接浏览文件。如何防止它?



非常感谢提前

Hi

How can we hide CSS /Java Script file in web application.If someone view user FireBug/Resource in Chrome , any one can view details of above said files. Also someone can directly browse a file if he know the Path.How to prevent it ?

Many thanks in advance

推荐答案

AFAIK,你无法隐藏它。为了正确和完整地呈现页面,CSS和JavaScript将在客户端浏览器上下载,发布后可以查看它。浏览器的开发人员工具清楚地暴露了其中涉及的CSS和脚本。



对于脚本,你可以缩小它,使得没有新的行和空格。这使得阅读起来很困难。
AFAIK, you cannot hide it. In order to render the page correctly and completely, CSS & JavaScript will be downloaded on client browser, post which one can have a look at it. Developer tools of browsers clearly expose the CSS & scripts involved in it.

For scripts, you can ''minify'' it such that there is no new line and spaces. This makes it difficult to read.


这篇关于如何使用ISS设置隐藏css和javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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