Magic link login integration on a few pages only

I saw the great how-to on intergrating magic link here https://magic.link/posts/magic-webflow

Only somehow it only let’s me use it for the whole site. What I wanted to achieve is that only certain pages of my site are protected. I tried to alter the script a bit, but apparently I’m a bit of a noob :slight_smile:

I tried to fiddle with the privatepages and publicpages variables, but they seem to overlap. Cause I only want a few pages to be protected and rest just to be normally visible.

Maybe someone here that could help ? @seemcat you know anything maybe?

No one has a clue here? @seemcat ??

1 Like

Hey! Thank you for your patience, I haven’t checked in on my Webflow Forum account in a while. It’s definitely possible to make it so that only certain pages of your site are protected.

Pls lmk if you still need help!

1 Like

I’m still struggling to be honest, help is much appreciated :slight_smile: I tried to change your script, but I think it just doesn’t work because of the overlapping root path’s.

@seemcat still here?