Force use of custom domain instead of render generated

Hi,

Is there a way to prevent the .onrender.com generated domain from being used by outside traffic?

I’ve noticed one of them has actually be indexed by Google. I’m assuming I could do some redirection in my app code, but didn’t know if there was a setting in the platform to do this?

Thanks.

Hi Mark,

Thanks for reaching out.

There isn’t currently a feature to disable/redirect the default domain, you would need to catch the domain and redirect it in your code, as you mentioned.

There is a feature request for this on our feedback site, please feel free to upvote/comment to be notified of updates: https://feedback.render.com/features/p/disableredirectadd-noindex-headers-for-onrendercom-urls

Alan

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