Activity Stream
48,167 MEMBERS
61154 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member

    Default Diffrent Homepage due to IP address

    Hi
    I have a porn website, I wanna block all the visitors from Maylaysia Indonesia CHINA and Vietnam and Laos
    If IP from those countries, they will be directed to a page says" It's not legal in your country blah blah blah"

    How can I do it?
    jiefangjun Reviewed by jiefangjun on . Diffrent Homepage due to IP address Hi I have a porn website, I wanna block all the visitors from Maylaysia Indonesia CHINA and Vietnam and Laos If IP from those countries, they will be directed to a page says" It's not legal in your country blah blah blah" How can I do it? Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    vaporhostn.com
    Use http://ipinfodb.com/ip_country_block.php
    to get a list of the needed IP's and use the script below to redirect them.

    Code: 
    <?php
    $blacklist = array("123.456.789", "456.789.123", "789.123.456");
    if(in_array($_SERVER['REMOTE_ADDR'], $blacklist)) {
    	header("Location: http://domain.tld/path/custom.php");
    	exit();
    }
    ?>

  4.     
    #3
    Member
    Website's:
    tribupinoy.net pinoyddl.org
    i thibk you can do that by using .htaccess and redirect them to one of you page.. try to search in google..

  5.     
    #4
    Member
    Add this to your .htaccess file: http://pastebin.com/ekN4Xi35

    Hope that helps.

    (via http://www.countryipblocks.net/count...elect-formats/)
    A life spent making mistakes is not only more honorable, but more useful than a life spent doing nothing. ? George Bernard Shaw
    ?
    Designer. Check my designs here.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Homepage
    By World Life in forum Wordpress
    Replies: 1
    Last Post: 30th Oct 2012, 05:36 AM
  2. extracting data from diffrent site
    By zebono2 in forum Web Development Area
    Replies: 1
    Last Post: 28th Jul 2012, 06:22 AM
  3. Replies: 15
    Last Post: 18th Feb 2012, 05:01 PM
  4. Uploaders from diffrent countries!!
    By chemicalx25 in forum File Host Discussion
    Replies: 14
    Last Post: 12th May 2011, 01:56 PM
  5. 5 Homepage LE Spots PR3
    By GoonzNetwork in forum Traffic Market (Buy, Sell and Trade)
    Replies: 0
    Last Post: 25th Apr 2010, 10:17 AM

Tags for this Thread

BE SOCIAL