Question regarding redirecting to another page based on ip address...

5 replies
is it possible to redirect a user based on their ip address? isn't that how oto pop-ups work...once a given ip has accessed a given page it can't access it again?

if possible what i would like to do is have 2 copies for the same product such that if someone is on the minisite they see a certain copy, and if they link over to the banding site (which has that plus all the other products and their descriptions) they also see the same copy and not the one that someone visiting the branding site for another product would see.

hopefully that made sense.
#address #based #page #question #redirecting
  • Profile picture of the author ak1lz
    I know this could be done! just not exactly sure how. I have had a system that checks for ranges of IP's when a user logs on, if they are in a banned ip range we would send them off to some dummy website.

    I did a little research that might point you in a good direction to read up on this.

    Redirect people based on where they live.
    Signature

    "The best preparation for good work tomorrow is to do good work today." - Elbert Hubbard

    {{ DiscussionBoard.errors[4302982].message }}
  • {{ DiscussionBoard.errors[4303028].message }}
    • Profile picture of the author Brian John
      Originally Posted by ak1lz View Post

      I know this could be done!
      Originally Posted by Bill_Z View Post

      Yes, it's definitely possible.
      that's cool. what i would like to do is have my likeable character story (longer copy) on the product's minisite, but on the main branding site have a much more subdued copy...one that merely lists product features and benefits. the reason for not having the longer copies on the branding site is that it won't make the sales pitch believable. after all, they all have someone who had a problem and stumbled on this great solution, etc. i'm not sure you can have too many copies like that for different products on one site and have that site believable...I know i'd be skeptical.

      so, each product would have its own minisite with a long copy, and a shorter copy without the likeable character story on the branding site. once someone has viewed the longer copy on a product's minisite, however, that's the same one they will see for that product on the branding site.
      {{ DiscussionBoard.errors[4303081].message }}
      • Profile picture of the author maxmalini
        Hi,

        Yes, the redirecting by IP address can be done. More than likely in a Linux host with something like the mod_rewrite module in Apache HTTP server. Otherwise you could do it with PHP/MySQL type setup as long as you keep the IP address list in the database or a flat file that you read from PHP.

        Also, you have to take into account that most IP's that will reach your site(s) will be dynamic, so there is a possibility that if their IP changes, they can go back to the main site that you are preventing them from going to, but this can also be solved with cookies.

        - Max
        {{ DiscussionBoard.errors[4303306].message }}
  • Profile picture of the author jacktackett
    typically most OTO pages that do limit access to one time only utilize cookies and not IP addresses. As others have said there are data bases you can use to determine where someone is coming from and redirect them to other content - typically its used to identify their locality and display that in an ad - or use it to personalize the page.

    Also - lots of folks still use dynamic ips so there is always the chance they'll show up as a different ip if they get a new one when the renew their dhcp lease. Folks can also use a proxy to hide their ip or cache/delete content they don't like. At one company I had the security guy code the proxy to delete ads and replace them with quotes. Some liked that (techno folks) some didn't (typically their arch nemesis the marketing and sales guys ;-) )

    Good luck.
    --Jack
    Signature
    Let's get Tim the kidney he needs!HELP Tim
    Mega Monster WSO for KimW http://ow.ly/4JdHm


    {{ DiscussionBoard.errors[4304002].message }}

Trending Topics