How to remove .fly.dev sites from Google search?

I am getting started with Fly.io & have a question regarding my fly.dev url. Currently I created an app and given a dev url which ends in fly.dev. I then setup DNS in godaddy created an 3 records an A name AAAA name (for cert) & a CNAME www to point to my fly.dev to get the subdomain of www to work.
Currently in google I am seeing the fly.dev site in google search.

How can the fly.dev site be removed from Google Search?

Our current suggestion is to use some canonical URL method such as redirecting such as 301 or using HTML metatags.

Most web frameworks would have some sort of middleware to handle domain canonicalization with barely any setup.

For reference our fly.io is a phoenix app and we use something this this: GitHub - remi/plug_canonical_host: PlugCanonicalHost ensures that all requests are served by a single canonical host.

1 Like

so I think it took a little time for the new CNAME www …fly.dev record to propagate. I don’t see any of my fly.dev site url in google any longer but they were there a short while after I added the CNAME www record.

@lubien I appreciate your message!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.