就像我们在软件中添加产品密钥一样,可以对网站进行类似操作 [英] like we add product key in a software can something like that can be done to a website

查看:107
本文介绍了就像我们在软件中添加产品密钥一样,可以对网站进行类似操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我想知道我们是否可以将诸如选项之类的产品密钥添加到我们的网站,以便它只能在一个域上运行,并且当有人从服务器下载整个网站并更改其名称或某些内容并将其上传到另一个域时,它要么问对于键或显示错误?

我知道这是一个特殊的问题,但是可以解决吗?如果是,如何使用

Hi all!!

i want to know that can we add product key like option to our website so that it will run on only a domain and when someone downloads the whole website from the server and changes it name or some stuff and uploads it to another domain it either asks for key or shows error ???

i know it a peculiar question but can it be done ?? if yes , how ??

推荐答案

Um.不,不是真的,以任何完全保护的方式.

假设这是一个ASP.NET网站,如果他们可以访问背后的代码以下载该代码(如果没有,它将根本无法工作),那么他们很可能就可以访问您的源代码-在这种情况下,任何内容都可移动或多变,任何保护措施都将浪费时间和空间.如果没有,或者您混淆了,则可以在后面的代码中检查服务器的IP地址,并且只能使用有效范围或地址或单个地址(假设您使用的是静态IP进行托管) ).但是任何保护措施都是可以解决的,通常会使合法用户烦恼,而不是保护您免受骗子的侵害.

如果这不是ASP.NET,那么您将无法做-甚至不会混淆HTML!
Um. No. Not really, in any totally protective way.

Assuming this is an ASP.NET website, if they have access to the code behind in order to download it (and without that it won''t work at all) then they have probably access to your source - in which case anything is removable or changeable and any protection is going to be a waste of time and space. If they don''t, or if you obfuscate, then you could check the IP address of the server in the code behind and only work with either a valid range or addresses or a single address (assuming you are using a static IP for hosting). But any protection can be worked round, and will generally annoy more legitimate users than protect you from crooks.

If this isn''t an ASP.NET then you can''t do diddly-squat - HTML is not even obfuscated!


这篇关于就像我们在软件中添加产品密钥一样,可以对网站进行类似操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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