How can I hide Webflow CMS content securely using data-ms-content without risk of browser inspection hacks? Answered
Is the best way to hide a "Paid" function (A form) with attribute data-ms-content = paid-plan?
Is the best way to hide a "Paid" function (A form) with attribute data-ms-content = paid-plan?
Comments
3 comments
Hey Josef đź‘‹
Show content if logged in with a plan
data-ms-content="CONTENT-ID" → This content is visible when a member logs in AND has the correct permissions. It’s hidden if they log out or do not have the correct permissions.
The "CONTENT-ID" is automatically generated when you gate content in Memberstack.
Or, as you suggested…
Show content if logged in with paid plan(s)
data-ms-content="paid-plans" → This content is visible when a member with a paid plan logs in… and hides if they log out or leave their paid plan.
Hi guys!
Please help me understand: if I use data-ms-content=GATED-CONTENT-ID on Webflow CMS items, is it secure? Can the hidden content be hacked and accessed by advanced users? I can't see the hidden items in browser via Inspection mode
Hey Olha
Yes, it is possible to gain access to content hosted in Webflow and gated by Memberstack. You can make it harder by following these steps, but server-side content is the best way to keep content locked down.
https://docs.memberstack.com/hc/en-us/articles/7979946671131-Checklist-for-Gating-Content-in-Memberstack
Please sign in to leave a comment.