如何从asp.net中的aspx页面隐藏css文件和javascript文件 [英] how can hide css file and javascript file from aspx page in asp.net

查看:75
本文介绍了如何从asp.net中的aspx页面隐藏css文件和javascript文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想由用户在asp.net页面上隐藏css文件和javascript文件.

I want to hide css file and javascript file from my asp.net page by users

推荐答案

我不认为可以.对于您的页面要使用的javascript和CSS文件,必须允许用户的浏览器下载它们,因此在我看来您无法隐藏它们.
I don''t think you can. For your javascript and css files to be used by your page, you have to allow your users'' browsers to download them, therefore you can''t hide them in my opinion.


Ram ,请合乎逻辑:用户的Web浏览器下载CSS进行渲染.如果它已经在客户端计算机上,那么有什么可能会阻止用户拥有此文件?

您是否担心竞争对手可能会破坏您的CSS?良好的Web设计是由内容(99.999%),定期更新,清晰度,清晰的导航和便利性组成的.任何人都可以窃取所有内容,但不能窃取您的良好声誉.

—SA
Ram, be logical: user''s Web browser downloads CSS to do rendering. If it is already on client machine, what possibly could stop the user from having this file?

Are your afraid of the competitor who may steel your nice CSS? The good Web design is made by content (99.999%), regular updates, clarity, clear navigation, convenience. Anyone can steal all of the content but not your good reputation.

—SA


就像每个人都说,为什么?有什么意义呢?您无法将它们隐藏在坚定的搜寻者中,但是您可以至少在某种程度上混淆javascript代码.请参见此处 [ ^ ]和此处 [
Like every one said, why? What is the point? You can''t hide them from a determined seeker, but you can, atleast, obfuscate javascript code to some degree. See here [^] and here[^]


这篇关于如何从asp.net中的aspx页面隐藏css文件和javascript文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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