For Techs.... Techniques.... Technologies....


How to configure referrer based redirection in AWS ALB

AWS Application loadbalancer provides a wide range of options in configuring redirection.

This tutorial explains the steps to configure redirection based on referrer.

Step1: Login to AWS EC2 console.

Step2: Select the required loadbalancer.

Step3: Edit the Listener rules and add the following rules.


Http header Referer is *REFERER*


Redirect to http://DOMAIN:80/?

Status code:HTTP_301

Here we need to replace,

REFERRER with the referrer url that required. Here we have used wildcard.
DOMAIN with the destination domain that to which redirected.

That's all…

Leave a Reply