6 Mar 2018

#31: Create a Captive Page

Keep your users on a specific page and force redirect them there until they accomplish a specific task/quest

Users don't always like long registration forms or they prefer not to fill certain fields. I completely understand because I am a user too but I am also the one who should make sure that all needed data is collected from the user. Let me show you how easy it is to prevent users from accessing your website until they do something you need them to, like agreeing to the terms and conditions. 


For this easy tutorial we will be using Redirect Toolkit and Action Form.

Here's the tutorial that shows you how to:

  • update profile property values on user's profile
  • create redirect rules
  • force users to stay on a certain page/ restrict users access until they do a specific task
The implementation is easy: We keep redirecting the user back to the same page as long as he didn't agree to the terms and conditions of the website (basically as long as the AgreedToTC Profile Property is still False in their case). Once the task is completed the profile property is updated to True and then the redirect condition is not met and the user will be able to freely access any page of your website.

We implemented this on all pages but you can use the same tutorial to apply the restriction to only a specific page (let's say a VIP or special offers section on the site); it's up to you.

Don't forget to also try Sharp CDN as well as it can drastically improve the loading speed of your website as you can see in the video tutorial here.

DNN SHARP Hosting: Put us to a test and accept our challenge to make your website faster: Get a faster website or win $1,000

Latest Posts from 1001

29 Aug 2019

#66: Manipulate Cookies with MyTokens

9 Aug 2019

#65: Google Maps Location Picker with markers and radius

16 Jul 2019

#64: How to Build a File Manager