Question

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

Was it helpful?

Solution

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.

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.

UPDATE:

dns-get-record

Please see HERE for PHP doccumentation on getting and checking the DNS records (CNAME being one of these)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top