limit access to online content in Kentico 11 to specific account holders?

William Sorrentino asked on July 15, 2019 15:31

I am seeking a solution to password protect online content for a page so it is available only to clients provided an access code.

Example: as a perk to clients who sign up for a specific account, provide access to a podcast of content. Only the people who have signed up for it granted access. We can email an access code for the page to ulock the content. Can anyone recommend a way to do this?

Thank you for any help or suggestions.

Recent Answers

Dmitry Bastron answered on July 15, 2019 15:42

Hi William,

OOTB Kentico allows to restrict access for the page content to specific users or roles. Roles seem to match perfectly for your case. All you need to do is:

  • create a new Role
  • configure page permissions following this article
  • assign this Role to anyone who entered the access code (and they will have the access to the restricted page automatically), can be done via:
    • custom code, the easiest way, just create a webpart assigning the Role to anyone who entered the correct code
    • Marketing Automation where you can create a process which will assign to the Role anyone provided the correct code
0 votesVote for this answer Mark as a Correct answer

William Sorrentino answered on July 15, 2019 16:27

Dmitry, thank you for the response. The content we wish to protect is a podcast for client who have a specific type of account with us. There will be thousands of people which will be granted access. In your solution above, would each client need to log into the website to access their role and get access to the content?

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on July 15, 2019 16:45

Yes, roles are a part of user login. If you don't want to force users to login it will require writing some custom code then.

I would do it this way then:

  • crete a custom web part with textbox for code to enter (and probably the correct code will be specified in the web part configuration)
  • site visitor will enter and submit the code
  • in the backend of the webpart (on button click for example) check if the code is correct and display the podcast then on the same page (I'm assuming the podcast is a sort of JS widget or something)
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.