dubinc / dub

Open-source link management infrastructure. Loved by modern marketing teams like Vercel, Raycast, and Perplexity.
https://dub.co
GNU Affero General Public License v3.0
17.86k stars 1.88k forks source link

Hide link destination in Link Inspector #1001

Closed steven-tey closed 2 months ago

steven-tey commented 3 months ago

From a customer: I want to be able to hide the destination URL from the link inspector.

For instance, I have a form in which I use Dub for gating access (password, time and date, IP geo-location).

linear[bot] commented 3 months ago

ENG-390 Hide link destination in Link Inspector

UsmanDev09 commented 2 months ago

I can work on this! @steven-tey

Pratham271 commented 2 months ago
Screenshot 2024-07-24 at 3 46 30 PM

@steven-tey are you talking about the highlighted links to be hidden

kaerez commented 2 months ago

The requirement is to add a checkbox for custom domains (free and paying accounts) and for free domains (paying accounts only), which will restrict the destination from being viewable in the inspector (and the inspector DOM).

Pratham271 commented 2 months ago

If they are not showing on link inspector then I guess they wouldn't be visible on the DOM inspector except the logo image which will be https://link.com/favicon.ico this is what needs to be hidden in the DOM

steven-tey commented 2 months ago

@Pratham271 I think we need to disable this on the server side for links that are password protected

Pratham271 commented 2 months ago

@steven-tey so we have to do it for all password protected links or just for the paid customers and also the checkbox thingy that @kaerez mentioned?

kaerez commented 2 months ago

@Pratham271 I think that password protected links are already blocked. The DOM reference is to ensure the target is also not provided by the backend to the frontend and simply hidden from view. I think we need to add it as a checkbox, as recommended above.

Pratham271 commented 2 months ago

@kaerez thanks for the clearance and confirmation. Starting it now

steven-tey commented 2 months ago

@steven-tey so we have to do it for all password protected links or just for the paid customers and also the checkbox thingy that @kaerez mentioned?

I believe only paid customers can create password-protected links atm, so just checking if the link is password protection should be enough!

kaerez commented 2 months ago

Or cloaked

On Mon, Jul 29, 2024 at 08:45, Steven Tey @.***> wrote:
@steven-tey so we have to do it for all password protected links or just for the paid customers and also the checkbox thingy that @kaerez mentioned?

I believe only paid customers can create password-protected links atm, so just checking if the link is password protection should be enough!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

Pratham271 commented 2 months ago

@steven-tey @kaerez is the checkbox fine or should I place it outside the container

Screenshot 2024-08-01 at 2 32 39 PM
steven-tey commented 2 months ago

Actually, just realized that password-protected links are hidden from the link inspector by default.

https://github.com/user-attachments/assets/6f2abcd3-1457-4720-a395-ee8ef6d49e80

Will be closing this issue for now – sorry for the false alarm here guys!

Pratham271 commented 2 months ago

But @kaerez suggestion is not yet implemented that user can specify some links to be hidden from the dom inspector