Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Limit access to a page based on entry point??

Limit access to a page based on entry point??

let's say I created a splash page to collect email addresses that then redirects the guest to a nice downloadable giveaway.  I do not want that lucky guest to share that downloadable giveaway with friends and on Facebook so is it possible to say that if this page loads at all the guest has to come from that specific splash page or they are shown a "Slow down cowboy and enter your details for this cool download" or even just redirected back to the splash page??

maryswave
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

Re: Limit access to a page based on entry point??

Sure, that should be easy to do. You can detect the "Referrer" of the currrent page.

So make a rule that checks for 2 things:

1 - the URL of the page that you are targetting. Make sure you detect this as "starts with", otherwise people can get around it by adding things onto the end of the URL.
2 - the Referrer. This is the URL that you want to enforce. Set this as "does not equal", and set the exact URL of the referring page. You might want to check whether the referring page is only available on 1 URL or if it might have other URLs too.

Then in the Succeed action, set the redirect back to the splash page.

So what's happening is that Chameleon looks for an exact combination of factors: that the person is landing on the giveaway page AND they did NOT come from the splash page. If that combination is found, you immediately redirect them back to the splash page.

Simple and very effective.

Hope that helps,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1666
Total Polls:
6
Total Posts:
5909
Dormant:
User Info:
 
Total Users:
10095
Newest User:
johnson58
Members Online:
0
Guests Online:
135

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked