Referer Context

Component ID

1485064

Component name

Referer Context

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

327

Component created

Component changed

Component body

what it does

This module allows you to trigger contexts (as provided by the context module) based on the referer(s) of the current session.

Example applications:

  • Display larger facebook connect/like buttons if the user entered your site by a facebook link.
  • Customize your landing-page based on which ad-banner was followed.
  • …

how it works

This module gathers all external referer URLs and saves them in the user's session. It implements a context condition that fires if one of the referer URLs matches a regular expression.