Private links in bubble.io

Hello I was wondering if there was any way to create a page in bubble.io that is only accessible through a created link that was sent to you. Kinda like how there are youtube videos that are locked unless u have the specific link to that video. Also is there a way to lock a page only to a specific user or email?

need to use url parameters and privacy rules

Yes,

You need to use URL parameters or segmented list as your refernece to show hide the page content

So instead of using a unique URL every time, I suggest just having a field for access given on the user side.

Have all of your checks on server side → current user does not have access redirect them to another page.

Also on all of your containers on the page (show hide on the URL) should have an additional condition “… and currrent user __has access”

This should keep your page private

You could do two basically. Have the on page load workflow trigger check if ‘current user is logged out is yes’ and have the redirect workflow action. And have a second on page load workflow trigger check ‘if current user field value grants permission’ and redirect. Both of those will redirect the user before any page content is downloaded.

Just put all containers into one container and put the condition onto one container. Make that group not visible on page load and put the condition to make it visible only when the condition is met…Also include ‘the current user is logged in’ for double safety.

One other thing, if needing to be really secure, could also add a field to the user type that is the ‘accessible link’ field and if the current url doesn’t match the ‘accessible link’ field to redirect as well…this way if the user is logged in and potential permission based on roles are met, but that particular user is not meant to see it due to the link not being shared with them, it will not be. Probably other approaches for where to save this field value or how to structure it, but would be a sort of ‘triple check’.

1 Like