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

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

问题描述

我计划开发一个网络应用,用户可以在其中列出他们的网站/博客.当人们提交他们的网站时,我如何确认他们是网站的所有者?

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?

例如,有一个用户 Mark 想要在未经他们同意的情况下提交其他人的网站.我想限制马克这样做,除非他是实际所有者.

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.

你有什么其他的建议?

推荐答案

我见过 Google 使用代码挑战".他们要求您在站点的页面中插入一小段代码,其中包含他们提供的唯一值.您将这段代码添加到网站并提交地址,然后 Google 通过阅读页面内容来验证代码是否存在.假设是,如果您可以更改网站,您就拥有它.

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天全站免登陆