Webflow sync, pageviews & more.
NEW

Is it possible to upload an HTML file to the root directory in Webflow for Facebook verification?

TL;DR
  • Use Facebook Business Manager to access Domain Verification and choose either the DNS TXT record method or the meta tag method.
  • For DNS: add the provided TXT record to your domain's DNS settings via your registrar.
  • For meta tag: paste the provided tag into the Head Code section in Webflow's Project Settings > Custom Code, then publish the site.

You cannot upload an HTML file to the root directory in Webflow, which makes direct file-based Facebook domain verification via HTML upload unsupported. However, you can verify your domain using one of the alternative methods Facebook provides.

  • Log into your Facebook Business Manager, go to Brand Safety > Domains, and initiate the domain verification process.
  • Choose the DNS Verification method.
  • Facebook will provide a TXT record (something like facebook-domain-verification=xxxxxxxxxx).
  • In Webflow, go to your Project Settings > Hosting tab.
  • Scroll to the Custom Domains section and click Edit DNS Settings (this redirects to your domain registrar).
  • In your registrar's DNS settings, add a new TXT record:
  • Name or Host: @ (or leave blank, depending on registrar)
  • Type: TXT
  • Value: Paste the Facebook TXT value

2. Use the Meta Tag Method (Alternative Option)

  • In Facebook Business Manager under Domain Verification, select the Meta Tag method.
  • Copy the <meta> tag provided.
  • In Webflow, go to Project Settings > Custom Code.
  • In the Head Code section, paste the entire <meta> tag.
  • Click Save Changes and Publish your site to the connected domain.
  • Return to Facebook and click Verify.
Note: This meta tag must be placed on the domain's homepage and be present in the <head> section.

Summary

You cannot upload HTML files to the root in Webflow, so Facebook's HTML file verification doesn’t work. Instead, use the DNS TXT record method (recommended) or the meta tag method within Webflow’s Custom Code settings.

Rate this answer

Other Webflow Questions