Webflow sync, pageviews & more.
NEW

Is there a way to upload a TXT file to the root domain of a site using Webflow?

TL;DR
  • Use DNS TXT records via your domain registrar or DNS provider to verify domain ownership with services like Google Search Console.
  • Alternatively, add meta tag verification codes in Webflow under Project Settings > Custom Code in the section.

You cannot upload a TXT file to the root domain in Webflow directly, because Webflow does not provide root-level file access to the hosting environment.

1. Use Alternative Verification Methods

  • Google Search Console, Bing Webmaster Tools, or other services often allow you to verify domain ownership using DNS TXT records instead of uploading a file.
  • Go to your domain registrar or DNS provider and add a TXT record with the verification code.
  • For example, in Google Search Console, choose "Domain" as the property type and follow the steps to add the TXT record to your DNS settings.

2. Use the Custom Code Section for Meta Tags

  • If the service offers HTML meta tag verification (instead of a TXT file), paste the meta tag in Webflow:
  • Go to Project Settings > Custom Code.
  • Place the meta tag inside the tag field.
  • Click Save and Publish your site.

3. Workarounds Using Redirect Pages (Limited Use)

  • If a 3rd-party service allows you to verify using a file hosted at a path like /myfile.txt, you can try creating a Webflow page with a matching slug, but this doesn't simulate a true .txt file and may not be accepted by all services.
  • This only works if the verification process allows custom file contents to be served from a page, which is rare and not reliable.

4. External Hosting for Verification (if absolutely needed)

  • If you control your domain but need root file access, consider:
  • Hosting the TXT file on an external server under a subdomain (e.g., verify.yourdomain.com) and pointing that subdomain to a host where you can upload files.
  • However, this depends on the service allowing alternative verification URLs.

Summary

Webflow does not support uploading TXT files to the root domain, but you can usually verify ownership via DNS TXT records or meta tags in the Custom Code section. Use DNS verification for the most consistent results.

Rate this answer

Other Webflow Questions