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 in your domain registrar for verification.
  • Use a meta tag in Webflow’s Custom Code settings if supported.
  • Host the TXT file externally, then submit the public URL if allowed.
  • Check if alternative CNAME or DNS verification methods are accepted.

Webflow does not provide a direct way to upload a TXT file to the root domain, but you can verify ownership or add custom data using other methods. Here’s how to work around this limitation.

1. Use Webflow’s Custom Code for Verification

  • If the TXT file is for domain verification (e.g., Google Search Console, Facebook, or other services), most platforms provide an alternative TXT record for DNS verification.
  • Go to your domain registrar’s DNS settings and add the TXT record provided by the service.
  • Webflow itself does not support file uploads to the root directory, but DNS-based methods serve the same purpose.

2. Use Meta Tags Instead of a TXT File

  • Some platforms allow verification using a meta tag instead of a TXT file.
  • Go to Webflow Dashboard > Project Settings > Custom Code.
  • Under Head Code, insert the provided meta tag (e.g., <meta name="google-site-verification" content="your-code">).
  • Save and publish your site.

3. Redirect to a Hosted File

  • Upload the TXT file to an external hosting service like Google Drive, Dropbox, or a CDN.
  • Get a publicly accessible URL.
  • If the verification service allows URL submissions, provide the hosted file’s link.
  • Webflow does not support 301 redirects for individual TXT files, so this works only if the verification platform accepts external links.

4. Check If the Verification Method Can Be Skipped

  • If the TXT file upload is for email or DNS verification, try using a CNAME or TXT DNS entry instead.
  • Check if the requesting service accepts alternative verification methods.

Summary

Webflow does not allow TXT file uploads to the root directory directly. However, you can verify ownership using DNS TXT records, meta tags, or external hosting. The best approach depends on the verification method accepted by the service requiring the TXT file.

Rate this answer

Other Webflow Questions