验证网站所有者的真实性 [英] Validate authenticity of website owner

查看:155
本文介绍了验证网站所有者的真实性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算开发一个web应用程序,用户将列出他们的网站/博客。当人们提交自己的网站,我怎么能确认他们是它的主人?

I'm planning to develop a web app where users will list their site/blog. When people submit their sites, how can I confirm that they are the owners of it?

因此​​,例如有谁愿意服从别人的网站未经其批准的用户大关。我想这样做,除非他是实际所有者限制马克。

So for instance there is a user Mark who wants to submit someone else's website without their approval. I want to restrict Mark from doing so unless he is the actual owner.

我的想法是做用户的电子邮件域和她/他要提交的网站域名之间的比较。如果它们匹配允许用户提交该网站。

My idea was to do a comparison between the user's email domain and the website domain she/he wants to submit. If they match allow the user to submit the website.

然而,大多数人不与他们的网站域名地址寄存器..也许我将实现一个Facebook在未来的连接。

However most people don't register with their website domain address.. or perhaps I'll implement a Facebook connect in the future.

您有什么建议其他的方法?

What other methods would you suggest?

推荐答案

我见过谷歌使用一个code的挑战。他们要求你插入一小块code与它们提供到网站页面的唯一值。您code的这段代码添加到网站,并提交地址,然后谷歌验证code是有通过阅读网页的内容。假设是,如果你可以改变网站,你拥有它。

I've seen Google use a "code challenge." They ask you to insert a small piece of code with a unique value they provide into a page in the site. You add this snippet of code to the site and submit the address, and then Google verifies the code is there by reading the contents of the page. The assumption is that if you can alter the site, you own it.

这篇关于验证网站所有者的真实性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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