1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress GEO redirect

Discussion in 'BlackHat Lounge' started by royalmice, Oct 2, 2009.

  1. royalmice

    royalmice BANNED BANNED

    Joined:
    Aug 23, 2007
    Messages:
    1,186
    Likes Received:
    982
    I was wondering if anyone could help me with ht.access redirect for wordpress.

    Basically i want to do 2 things
    Redirect all users from a specific country to a page on the current site
    All other users i want to direct to a affiliate site

    Basically i want to redirect all the below IP's to : http://www.mydomain.com/screw you.html and all other people should redirect to http://www.myaffiliatedomain.com

    Code:
    Either redirect by country code TH or all the below which are the country IP's
    
    58.8.0.0 - 58.11.255.255
    58.64.0.0 - 58.64.127.255
    58.97.0.0 - 58.97.127.255
    58.136.0.0 - 58.137.255.255
    58.147.0.0 - 58.147.127.255
    58.181.128.0 - 58.181.255.255
    61.7.128.0 - 61.7.255.255
    61.11.224.0 - 61.11.255.255
    61.14.50.32 - 61.14.50.39
    61.19.0.0 - 61.19.255.255
    61.47.0.0 - 61.47.127.255
    61.90.0.0 - 61.91.255.255
    63.134.236.100 - 63.134.236.109
    64.38.193.96 - 64.38.193.127
    64.225.121.80 - 64.225.121.95
    64.225.137.240 - 64.225.137.255
    64.225.139.192 - 64.225.139.207
    67.15.144.0 - 67.15.144.31
    67.15.158.160 - 67.15.158.191
    67.15.251.64 - 67.15.251.79
    69.13.149.92 - 69.13.149.100
    80.78.19.96 - 80.78.19.103
    110.49.0.0 - 110.49.255.255
    110.76.152.0 - 110.76.155.255
    110.77.128.0 - 110.78.255.255
    110.164.0.0 - 110.164.255.255
    110.168.0.0 - 110.171.255.255
    111.84.0.0 - 111.84.255.255
    111.223.32.0 - 111.223.63.255
    111.235.68.0 - 111.235.71.255
    112.121.128.0 - 112.121.159.255
    112.140.188.0 - 112.140.191.255
    112.142.0.0 - 112.143.255.255
    113.21.240.0 - 113.21.247.255
    113.53.0.0 - 113.53.255.255
    114.109.0.0 - 114.109.255.255
    114.128.0.0 - 114.128.255.255
    115.31.128.0 - 115.31.191.255
    115.67.0.0 - 115.67.255.255
    115.87.0.0 - 115.87.255.255
    115.178.56.0 - 115.178.63.255
    116.58.224.0 - 116.58.255.255
    116.68.144.0 - 116.68.159.255
    116.214.113.0 - 116.214.113.255
    117.47.0.0 - 117.47.255.255
    117.121.208.0 - 117.121.223.255
    118.172.0.0 - 118.175.255.255
    119.31.0.0 - 119.31.127.255
    119.42.64.0 - 119.42.135.255
    119.46.0.0 - 119.46.255.255
    119.63.64.0 - 119.63.95.255
    119.76.0.0 - 119.76.255.255
    119.148.96.0 - 119.148.103.255
    119.160.208.0 - 119.160.223.255
    121.50.168.0 - 121.50.175.255
    122.0.0.0 - 122.0.7.255
    122.144.24.0 - 122.144.31.255
    122.154.0.0 - 122.155.255.255
    123.242.128.0 - 123.242.191.255
    124.40.224.0 - 124.40.239.255
    124.109.0.0 - 124.109.3.255
    124.109.24.0 - 124.109.31.255
    124.120.0.0 - 124.122.255.255
    124.157.128.0 - 124.157.255.255
    125.24.0.0 - 125.27.255.255
    125.213.224.0 - 125.213.255.255
    157.179.0.0 - 157.179.255.255
    158.108.0.0 - 158.108.255.255
    161.200.0.0 - 161.200.255.255
    161.246.0.0 - 161.246.255.255
    164.115.0.0 - 164.115.255.255
    165.209.0.0 - 165.209.255.255
    168.120.0.0 - 168.120.255.255
    180.128.0.0 - 180.128.255.255
    192.41.170.0 - 192.41.170.255
    192.100.77.0 - 192.100.77.255
    192.101.91.0 - 192.101.91.255
    192.102.83.0 - 192.102.83.255
    192.108.230.0 - 192.108.230.255
    192.133.10.0 - 192.133.10.255
    192.150.249.0 - 192.150.251.255
    192.188.172.0 - 192.188.172.255
    192.203.247.0 - 192.203.247.255
    192.207.64.0 - 192.207.64.255
    192.207.242.0 - 192.207.242.255
    192.207.254.0 - 192.207.254.255
    192.251.227.0 - 192.251.228.255
    194.117.103.127 - 194.117.103.127
    194.117.103.134 - 194.117.103.134
    195.112.167.8 - 195.112.167.11
    195.112.167.76 - 195.112.167.79
    195.112.177.44 - 195.112.177.47
    195.112.177.144 - 195.112.177.147
    198.22.35.0 - 198.22.35.255
    198.49.112.0 - 198.49.113.255
    202.0.111.0 - 202.0.111.255
    202.0.117.0 - 202.0.120.255
    202.3.68.0 - 202.3.71.255
    202.5.80.0 - 202.5.95.255
    202.6.90.0 - 202.6.90.255
    202.6.100.0 - 202.6.101.255
    202.6.107.0 - 202.6.107.255
    202.6.111.0 - 202.6.111.255
    202.8.25.0 - 202.8.25.255
    202.8.64.0 - 202.8.75.255
    202.8.78.0 - 202.8.79.255
    202.8.84.0 - 202.8.87.255
    202.12.73.0 - 202.12.74.255
    202.12.97.0 - 202.12.97.255
    202.12.116.0 - 202.12.118.255
    202.14.117.0 - 202.14.117.255
    202.14.162.0 - 202.14.164.255
    202.20.87.0 - 202.20.87.255
    202.20.105.0 - 202.20.105.255
    202.21.140.0 - 202.21.140.255
    202.21.144.0 - 202.21.144.255
    202.21.149.0 - 202.21.149.255
    202.22.8.0 - 202.22.15.255
    202.27.10.0 - 202.27.11.255
    202.28.0.0 - 202.29.255.255
    202.41.160.0 - 202.41.191.255
    202.43.32.0 - 202.43.47.255
    202.44.0.0 - 202.44.55.255
    202.44.60.0 - 202.44.74.255
    202.44.96.0 - 202.44.96.255
    202.44.128.0 - 202.44.151.255
    202.44.192.0 - 202.44.255.255
    202.47.8.0 - 202.47.15.255
    202.47.224.0 - 202.47.255.255
    202.52.4.0 - 202.52.7.255
    202.55.140.0 - 202.55.143.255
    202.57.128.0 - 202.57.191.255
    202.58.126.0 - 202.58.126.255
    202.60.192.0 - 202.60.207.255
    202.69.136.0 - 202.69.143.255
    202.71.112.0 - 202.71.127.255
    202.78.8.0 - 202.78.15.255
    202.80.224.0 - 202.80.255.255
    202.90.4.0 - 202.90.7.255
    202.90.112.0 - 202.90.127.255
    202.91.16.0 - 202.91.23.255
    202.93.48.0 - 202.93.63.255
    202.94.240.0 - 202.94.255.255
    202.122.40.0 - 202.122.47.255
    202.122.130.0 - 202.122.131.255
    202.129.0.0 - 202.129.63.255
    202.129.204.0 - 202.129.207.255
    202.133.128.0 - 202.133.191.255
    202.139.192.0 - 202.139.223.255
    202.142.192.0 - 202.142.223.255
    202.143.128.0 - 202.143.191.255
    202.148.176.0 - 202.148.191.255
    202.149.24.0 - 202.149.31.255
    202.149.96.0 - 202.149.127.255
    202.151.4.0 - 202.151.7.255
    202.151.40.0 - 202.151.47.255
    202.151.176.0 - 202.151.191.255
    202.153.0.0 - 202.153.3.255
    202.162.76.0 - 202.162.79.255
    202.170.112.0 - 202.170.127.255
    202.172.16.0 - 202.172.23.255
    202.173.208.0 - 202.173.223.255
    202.176.64.0 - 202.176.191.255
    202.182.0.0 - 202.182.31.255
    202.183.128.0 - 202.183.255.255
    203.4.160.0 - 203.4.160.255
    203.33.240.0 - 203.33.240.255
    203.62.152.0 - 203.62.155.255
    203.78.96.0 - 203.78.111.255
    203.80.56.0 - 203.80.56.255
    203.88.82.8 - 203.88.82.15
    203.88.82.128 - 203.88.82.135
    203.99.252.0 - 203.99.253.255
    203.101.128.0 - 203.101.159.255
    203.107.128.0 - 203.107.255.255
    203.113.0.0 - 203.113.127.255
    203.114.96.0 - 203.114.127.255
    203.118.64.0 - 203.118.127.255
    203.121.128.0 - 203.121.191.255
    203.130.128.0 - 203.130.159.255
    203.131.208.0 - 203.131.223.255
    203.144.128.0 - 203.144.255.255
    203.145.112.0 - 203.145.119.255
    203.146.0.0 - 203.147.63.255
    203.148.128.0 - 203.149.63.255
    203.150.0.0 - 203.152.63.255
    203.153.50.0 - 203.153.51.255
    203.153.128.0 - 203.153.143.255
    203.153.160.0 - 203.153.191.255
    203.154.0.0 - 203.156.191.255
    203.157.0.0 - 203.158.7.255
    203.158.96.0 - 203.159.255.255
    203.160.4.0 - 203.160.7.255
    203.160.137.0 - 203.160.137.255
    203.170.16.0 - 203.170.19.255
    203.170.50.0 - 203.170.51.255
    203.170.128.0 - 203.170.255.255
    203.172.32.0 - 203.172.255.255
    203.185.64.0 - 203.185.159.255
    203.188.0.0 - 203.188.63.255
    203.189.116.0 - 203.189.119.255
    203.190.250.0 - 203.190.251.255
    203.192.32.0 - 203.192.63.255
    203.194.139.191 - 203.194.139.222
    203.195.96.0 - 203.195.111.255
    203.195.120.0 - 203.195.123.255
    203.209.0.0 - 203.209.127.255
    203.209.191.0 - 203.209.191.255
    203.223.88.0 - 203.223.89.255
    205.214.82.160 - 205.214.82.167
    206.73.194.224 - 206.73.194.255
    206.73.210.128 - 206.73.210.159
    206.73.211.128 - 206.73.211.255
    206.73.244.64 - 206.73.244.79
    206.182.226.128 - 206.182.226.159
    207.117.173.0 - 207.117.173.255
    208.112.109.208 - 208.112.109.223
    208.112.110.32 - 208.112.110.47
    209.28.27.0 - 209.28.27.255
    209.28.38.0 - 209.28.38.255
    209.28.54.0 - 209.28.54.63
    209.28.54.80 - 209.28.54.87
    209.50.236.85 - 209.50.236.94
    209.93.28.128 - 209.93.28.135
    209.93.65.128 - 209.93.65.255
    209.93.106.0 - 209.93.106.129
    209.93.115.0 - 209.93.115.31
    209.93.115.112 - 209.93.115.127
    209.93.173.128 - 209.93.173.159
    209.93.174.128 - 209.93.174.191
    209.93.179.0 - 209.93.179.127
    209.93.226.0 - 209.93.226.127
    209.93.236.0 - 209.93.236.63
    209.93.242.0 - 209.93.242.63
    209.93.250.0 - 209.93.250.255
    209.93.254.128 - 209.93.254.255
    209.188.31.32 - 209.188.31.63
    209.190.22.168 - 209.190.22.175
    209.197.224.216 - 209.197.224.223
    210.1.0.0 - 210.1.63.255
    210.4.128.0 - 210.4.159.255
    210.86.128.0 - 210.86.223.255
    210.187.39.128 - 210.187.39.255
    210.203.128.0 - 210.203.191.255
    210.213.0.0 - 210.213.63.255
    210.246.64.0 - 210.246.255.255
    212.62.77.176 - 212.62.77.183
    212.63.182.204 - 212.63.182.207
    212.63.182.252 - 212.63.182.255
    212.63.183.82 - 212.63.183.82
    216.15.255.192 - 216.15.255.223
    216.22.221.0 - 216.22.222.255
    216.38.53.44 - 216.38.53.47
    216.131.67.160 - 216.131.67.175
    216.131.72.96 - 216.131.72.127
    216.131.77.176 - 216.131.77.191
    216.131.78.200 - 216.131.78.207
    216.131.81.40 - 216.131.81.47
    216.131.83.16 - 216.131.83.23
    216.131.83.160 - 216.131.83.191
    216.131.83.240 - 216.131.83.255
    216.131.84.160 - 216.131.84.175
    216.131.84.240 - 216.131.84.247
    216.131.86.216 - 216.131.86.223
    216.131.88.176 - 216.131.88.191
    216.131.89.64 - 216.131.89.95
    216.131.90.112 - 216.131.90.119
    216.131.104.48 - 216.131.104.55
    216.131.104.208 - 216.131.104.223
    216.131.105.64 - 216.131.105.71
    216.131.107.208 - 216.131.107.223
    216.131.108.64 - 216.131.108.71
    216.131.108.80 - 216.131.108.87
    216.131.113.80 - 216.131.113.87
    216.131.113.104 - 216.131.113.111
    216.131.116.0 - 216.131.116.7
    216.131.119.112 - 216.131.119.119
    216.131.119.216 - 216.131.119.231
    217.23.111.64 - 217.23.111.95
    218.100.38.0 - 218.100.38.255
    218.100.46.0 - 218.100.47.255
    218.100.66.0 - 218.100.66.255
    221.128.64.0 - 221.128.127.255
    222.123.0.0 - 222.123.255.255
    222.229.88.0 - 222.229.95.255
    If someone can help me with a htaccess file to use then i am willing to make a small donation for the help, providing the htaccess works :sombrero:
     
  2. royalmice

    royalmice BANNED BANNED

    Joined:
    Aug 23, 2007
    Messages:
    1,186
    Likes Received:
    982
    I managed to sort my self out with the help from here : http://www.blackhatworld.com/blackhat-seo/making-money/92299-simplest-geo-redirect-code.html