验证网站所有者的真实性

编程入门 行业动态 更新时间:2024-10-24 08:30:57
本文介绍了验证网站所有者的真实性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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

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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-18 04:45:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/930538.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:所有者   真实性   网站

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!