bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
12.91k stars 1.65k forks source link

Allow masked redirect from username domain to bluesky? #6672

Open trusktr opened 3 days ago

trusktr commented 3 days ago

Describe the Feature

It would be neat if, for example, I could paste joe.trusktr.io in my address bar, and it would show my bluesky profile but keep joe.trusktr.io in the browser address bar.

This can be achieved with a masked URL redirect in DNS settings.

What are the reasons to not allow this? (I'm n00b to masked DNS redirect, no idea the implications)

Attachments

Here's a video of what I mean:

https://github.com/user-attachments/assets/a3142bf9-49f9-4c2c-8308-b0fdadbe5875

Describe Alternatives

No response

Additional Context

No response

trusktr commented 3 days ago

If there are no issues with masked redirect (for example security issues?) then it would be interesting to see people's usernames in the address bar and nothing more. Example use case:

This could at least be possible with bsky.social usernames, as those are owned by Bluesky (I've made cross-subdomain websites before, so I know it is doable).

I'm just not familiar with if there are any issues with masked redirects. I think you may need to avoid relative URLs in any links, so that for example clicking a link to another user, or a non-user bsky page, would go there, instead of keeping the same host name in the address bar. The idea would be that the user's custom domain is available only when viewing their profile.


Another option could be to create domain settings in Bluesky, let the user link the domain to Blue sky, then Bluesky can have full control. For example, I could link joe.trusktr.io to bluesky, then Bluesky can easily control which paths are allowable under the username hostname (if that's an issues with masked redirects, I'm not sure).

For example, this post:

https://bsky.app/profile/joe.trusktr.io/post/3lbl63om5gk24

could be allowed to be

https://joe.trusktr.io/post/3lbl63om5gk24

But if I were to click on someones comment, or someone's username, then the hostname would change accordingly.


This would be so cool!