Created
September 12, 2018 11:11
-
-
Save ShuvoHabib/3a11659f5e9791b9f8a72395e320b5b5 to your computer and use it in GitHub Desktop.
Add IP Audience Adobe Target
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add this to Profile Script | |
var strIp= user.header('x-cluster-client-ip'); | |
var res = /^(119.148.14.249)$/.test(strIp); | |
if (res){ | |
return 'Valid IP'; | |
}else{ | |
return 'Invalid IP' ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment