Redirect user based on certain ISP
2017-11-28, 02:35 AM,
#1
Hello guys, there are any javascript or similar code that can detect and redirect users with only certain ISP?
Reply
Share This Thread :

2017-11-28, 08:49 AM,
#2
here you go, i just wrote you a quick example in php:

Code:
<?php
   // quick redirect example by styx@argo-content.com
   function rdns_check($isp,$url) {
      $host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
      if(stristr($host,$isp)) {
         header("Location: $url");
         exit;
      }
   }
   rdns_check("your-isp2match.com","https://argo-content.com");
?>

just typed it in here directly, but should work :)

[Image: IoRrqFZ.jpg]
Reply
2017-11-28, 11:18 PM,
#3
(2017-11-28, 08:49 AM)styx Wrote: here you go, i just wrote you a quick example in php:

Code:
<?php
  // quick redirect example by styx@argo-content.com
  function rdns_check($isp,$url) {
     $host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
     if(stristr($host,$isp)) {
        header("Location: $url");
        exit;
     }
  }
  rdns_check("your-isp2match.com","https://argo-content.com");
?>

just typed it in here directly, but should work :)

WOW thanks for the code man. I didn't have the idea that we can do that too.
Reply
2017-11-28, 11:19 PM,
#4
(2017-11-28, 08:49 AM)styx Wrote: here you go, i just wrote you a quick example in php:

Code:
<?php
  // quick redirect example by styx@argo-content.com
  function rdns_check($isp,$url) {
     $host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
     if(stristr($host,$isp)) {
        header("Location: $url");
        exit;
     }
  }
  rdns_check("your-isp2match.com","https://argo-content.com");
?>

just typed it in here directly, but should work :)

Thank's, but I don't understand where I need to put the "operator name"? I need to go to certain url when the code detected users with one specific carrier.
Reply
2017-11-28, 11:41 PM,
#5
just replace "your-isp2match.com" with the name of your isp that you want to match and https://argo-content.com with the url you want to redirect to.

[Image: IoRrqFZ.jpg]
Reply


Related Threads
Thread Author Replies Views Last Post
  Hello there,new user of a CPA network andrew johnes 7 354 2018-05-18, 11:35 PM
Last Post: biocryol77
  Cpabuild question from a new user andrew johnes 3 321 2018-05-18, 04:40 AM
Last Post: andrew johnes
  Landing page redirect (question) egzonni 1 279 2018-04-27, 11:43 AM
Last Post: andrew43
  IG+CPA Question: Easiest and cheapest way to get user info? cpvast 4 293 2018-04-04, 08:55 PM
Last Post: cpvast
  Any SMS Payment Processor User There? kderow 5 401 2018-04-02, 02:15 AM
Last Post: kderow





About Us | Contact Us | CPA Elites | Advertise | Stats

© 2013-2018 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top