隐藏html页面源代码 [英] hide html page source

查看:693
本文介绍了隐藏html页面源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以隐藏asp.net页面查看源代码? 您隐藏ASP.NET代码:它在View Source中不可见。



如果您的意思是您可以隐藏您的HTML :您可以通过Javascript或AJAX即时创建HTML来阻止随意窥视,但开发人员始终可以使用Firebug和Fiddler等简单工具查看您正在做什么。



编辑添加:我没有考虑混淆(尽管这也不鼓励偶然偷看),我想到使用JavaScript来拉下HTML。做View Source只会显示一堆< SCRIPT> 标记。



但他的问题似乎有已被修改为不同的方向,我可以阻止人们下载我的图片,答案是简单的。从少量图片赚钱并不是一个可行的商业模式。 (如果您有成千上万的图片,那是另外一回事了。)



编辑添加:

制作照片目录的常规方式是[a]显示低分辨率预览,[b]在每张图像上放置水印(这里是一个例子)或两者兼而有之。


Is there is any way to hide asp.net page view source?

解决方案

If you mean, can you hide your ASP.NET code: it's not visible in View Source.

If you mean can you hide your HTML: you can discourage casual peeking by creating your HTML on the fly via Javascript or AJAX, but a developer will always be able to see what you are doing, using simple tools like Firebug and Fiddler.

Edited to add:

I wasn't thinking of obfuscation (though that also discourages casual peeking), I was thinking of using javascript to pull down HTML. Doing a View Source will only show a bunch of <SCRIPT> tags.

But it appears his question has been revised to go in a different direction anyway, to can I keep people from downloading my images, and the answer to that is a simple no. Making money from small numbers of images is not a viable business model. (If you have thousands of images, that's another story.)

Edited to add:

The conventional way of making a catalog of photographs is to [a] show low-resolution previews, [b] put a watermark on each image (here's an example), or both.

这篇关于隐藏html页面源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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