Verify content from backend like google webmaster?
Step 1: Generate a Random key
Generate a Random key and allocate, save to the domain profile and create a meta name for that.
ie: <meta name=”google-site-verification” content=”2yRQZXLGJLLNN28E”>
Step 2: Place of Website
Ask the webmaster to paste the code in the header tag of their website.
Step 3: Ask to Verify
Then ask the user to click verify once code is placed.
Now in your backend, fetch the URL and find the element
Step 4: Parse in Backend & Verify
Parse the content using this JS or any virtual DOM
var foundTag = document.querySelectorAll('[name="google-site-verification"]') authCode=foundTag.content
will return the verification code
Once you have the value you can do verification on the server and you are done.
Now you can compare with the secret you have allocated.