Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it OK to add site verification files to public source control?

When submitting my website to Google and Bing they require I verify it by (for example) uploading a file.

This file, if I have understood, should not be removed because they recheck it regularly and removing it would mean I'd lose access and need to verify it again.

Given that the source of this website is available publicly on GitHub, is it safe/ok add these verification files to source control? Or would that add a risk of some sort?

like image 560
Svish Avatar asked Apr 29 '14 15:04

Svish


People also ask

Where do I add Google site verification?

Open Search Console using the same Google account that has edit access to your property in Google Analytics, and add or select the property to verify. Choose Google Analytics in the verification details page for your site and click Verify.

Can I have multiple Google site verification records?

It's fine for a site to have multiple verification meta tags or HTML files; there should be one meta tag or file per account. That's it. You can safely include more than one google-site-verification meta tags on your website.

Where do I put the Google site verification code in HTML?

You need to enter your Google site verification HTML meta tag here. It'll look something like this: <meta name="google-site-verification" content="......." /> . Add your site verification meta tag and save the changes.


1 Answers

Since the verification file is within the web servers root structure, and Google needs to access it to read its contents - Technically anyone could read it if they wanted by going to http://mysite.example.com/verification.html.

With that in mind, I wouldn't add it to the github repository as it isn't something anyone would need to either clone the repository and create their own version, or fork and create change requests. It doesn't have any value to anyone other than you.

like image 69
Chris Turner Avatar answered Oct 20 '22 15:10

Chris Turner