How to Verify Your Website With Google Search Console

Google website verification proves to Google Search Console that you own a specific site, unlocking Search performance data and the ability to manage your site’s presence in search results. There are two paths: upload an HTML file to your server (URL Prefix method) or add a Domain Name System (DNS) TXT record to your zone (Domain method). This guide walks you through using cPanel.

Method 1: Google Website Verification With an HTML File

The URL Prefix method verifies a specific URL (for example, https://domain.com). Google confirms ownership when it can fetch a small HTML file you place at the site’s root. Complete this in two parts: download the file from Google, then upload it through cPanel File Manager.

Get the verification file from Google

  1. Go to Google Search Console in your browser.
  2. Under URL prefix, enter the full URL of your website (for example, https://domain.com) and click Continue.
  3. On the verification screen, click the button next to Download the file to save the HTML verification file to your computer. If your browser prompts you to save or open the file, choose Save.
    Google Search Console HTML file verification option with the Download the file button highlighted

Upload the file through cPanel File Manager

  1. Log in to cPanel.
  2. In the Files section, click File Manager.
    cPanel Files section with File Manager icon highlighted
  3. Navigate to your site’s document root. For most sites, this is public_html. If you are working with an addon domain, the document root may be a subdirectory such as public_html/<your-domain>.
  4. Click the Upload button in the File Manager toolbar.
    cPanel File Manager toolbar with the Upload button highlighted
  5. Click Select File, then locate and select the HTML file you downloaded from Google Search Console.
    cPanel File Manager upload dialog with the Select File button highlighted
  6. Once the upload completes, return to the Google Search Console tab and click Verify. Google fetches the file from your server and confirms ownership.

Tip: Keep the HTML file in your document root after verification. If Google cannot find it during a later re-check, it may revoke verified status.

Method 2: Domain Verification With a DNS TXT Record

The Domain method verifies all URLs under a domain, including both http:// and https:// versions and all subdomains. Instead of a file, Google asks you to add a TXT record to your domain’s DNS zone. This method requires access to your domain’s Zone Editor in cPanel.

Note: DNS changes can take up to 48 hours to propagate fully. Google verification may not succeed immediately after you save the record. If the first attempt fails, wait a few minutes and try again.

Copy the TXT record from Google

  1. Go to Google Search Console in your browser.
  2. Under Domain, enter your domain name (for example, domain.com) and click Continue.
    Google Search Console Domain field with a domain name entered and the Continue button highlighted
  3. On the DNS verification screen, click the Copy button under step 3 to copy the TXT record value to your clipboard.
    Google Search Console DNS verification screen showing the TXT record and Copy button

Add the TXT record in cPanel Zone Editor

  1. Log in to cPanel.
  2. In the Domains section, click Zone Editor.
    cPanel Domains section with Zone Editor highlighted
  3. Click the Manage button next to the domain you want to verify.
    cPanel Zone Editor domain list with the Manage button highlighted next to a domain
  4. Click the down arrow next to + Add Record, then click Add “TXT” Record.
    cPanel Zone Editor Add Record dropdown menu with the Add TXT Record option highlighted
  5. Fill in the record fields as follows, then click Save Record.
  6. Return to the Google Search Console tab and click Verify. If propagation is not complete yet, Google will prompt you to try again in a few minutes.
    cPanel Zone Editor TXT record form showing the Name, TTL, Type, and Record fields filled in for Google verification
FieldValue
NameYour domain name (for example, domain.com)
TTLLeave at 900
TypeLeave as TXT
RecordPaste the value you copied from Google

Troubleshooting

Google says verification failed after uploading the HTML file

Make sure the file is in the correct document root for the domain you are verifying. If the domain uses an addon domain or subdomain, the document root may not be public_html. You can confirm the correct path in cPanel under Domains. Also check that the filename was not renamed during upload. The filename must match exactly what Google expects. See How to Use Site Verification in Jetpack if you are working with a WordPress site and prefer a plugin-based approach.

Google says the DNS record cannot be found

DNS changes take time to propagate across the Internet. After saving the TXT record in Zone Editor, wait at least 15 minutes before clicking Verify in Google Search Console. In some cases, propagation can take up to 48 hours. You can use a public DNS checker to confirm the record is live before retrying.

Verification succeeded but access was later revoked

Google periodically re-checks that verification tokens are still present. If the HTML file is deleted or the TXT record is removed from your DNS zone, Google will revoke ownership. Restore the file or record, and Google will re-verify your site on its next crawl cycle.

Conclusion

Your site is now verified in Google Search Console. The URL Prefix method covers a single URL, while the Domain method covers every protocol and subdomain under your domain. Once verified, you can monitor search traffic, request indexing of new pages, and review any issues Google detects. For additional Google tools you can add to your site, see Overview of Google Tools for Your Website or Installing Google Analytics on Your Website.

Share this Article
Derrell Willis
Derrell Willis Manager, Developer Relations

More Articles by Derrell