如何验证域所有权 [英] How to verify Domain Ownership

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

问题描述

我在一个人们将提交其域名的网站上工作,并且我想知道他们将如何通过DNS记录来确认/验证其域名.我的网站是PHP

I am working on a site where people will submit their domain, And I want to know how will they confirm/verify their domain by DNS records. My site is in PHP

推荐答案

查看CNAME的使用.让用户在其DNS记录上创建自定义CNAME并让您的网站尝试访问它们是验证域所有权的一种方法.

Look at the use of CNAME's. Getting users to create custom CNAME's on their DNS records, and having your site try to access these is one way of verifying the ownership of a domain.

另一个工作要多一些,但是要使用户向其站点添加一个Meta标记,并再次让您的页面尝试访问并读取此Meta信息以证明他们有权访问该页面-从而验证所有权.

Another would be a bit more work, but getting users to add a Meta tag to their site, and again have your page attempt to access and read this Meta information to prove that they have access to the page - Thus verifying ownership.

更新:

dns-get-record

有关获取和检查DNS记录的信息,请参阅此处的PHP文档( CNAME就是其中之一)

这篇关于如何验证域所有权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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