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
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 :)
Latest Thanks - View all

EnChanter(2017-11-28 03:00 PM) 

[Image: IoRrqFZ.jpg]

✨✨✨ BLACKFRIDAY/CYBERMONDAY COUPON GET 30% OFF (SAVE ABOUT $80!) WITH CODE: BF2017 ✨✨✨
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.
Latest Thanks - View all

Mix2003_2012(2017-11-28 11:53 PM) 

[Image: IoRrqFZ.jpg]

✨✨✨ BLACKFRIDAY/CYBERMONDAY COUPON GET 30% OFF (SAVE ABOUT $80!) WITH CODE: BF2017 ✨✨✨
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  (help) Redirect Blogspot engkusplus 3 181 2017-11-04, 08:01 AM
Last Post: engkusplus
  Landing Page [redirect] buzzshares 9 353 2017-10-02, 05:21 AM
Last Post: buzzshares
  [Question] Could a GEOIP Redirect be a reason for dangerous browser warnings? CheDz 1 124 2017-09-20, 03:42 PM
Last Post: zamnajali
  Redirect on the Basis of Age? Qoins 1 154 2017-07-26, 06:18 PM
Last Post: YalaYolo
  disable a <div> after clicking 2 times per day per user roktim 7 312 2017-07-20, 11:50 PM
Last Post: metros





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

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