My product allows users to spin preview environments for any pull request, and give them a URL like xyz.my.pullpreview.com. I also use pullpreview.com as the main marketing (static) website.
Now I just noticed sites like http://34-229-63-26-gh-263088647-branch-master.my.pullpreview.com/ pop up, which appear to be content farms running under my domain. What’s more, the user registered that website in the google search console (which is how I got notified of its existence).
Since I’m only using pullpreview.com as a marketing website, I didn’t think too much about the consequences of issuing subdomains of it to give to users, because I wasn’t too concerned about security.
But I didn’t think about SEO and how malicious websites could potentially harm the reputation of the main website.
So for people knowledgeable:
- Can bad content on subdomains harm the main domain’s reputation?
- Is it always best to use a secondary domain whenever we allow arbitrary content to be posted by users? (think GitHub Pages switching from GitHub.com to GitHub.io, or herokuapps.com etc.)
- Are there cases when it’s ok?
Yeah, this is why hosting user content scares me. AFAIK: