Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2004
    Location
    Sunshine Coast, Queensland, AU
    Posts
    1,830
    Tokens
    467

    Latest Awards:

    Default Country Restriction

    Like Habbo does in beat and only lets certain countrites
    How do i set that up so i only wnon't certian counries on my site

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    why would you want to?

    you would just use htaccess files, and disable any ip useing a certain contry code, they all have a number for a contry in it, athogh im not a 100% on what it is, you need to check a contry to ip db.

    you could also only let an ip load files if it is from a certain contrys ip as well.

  3. #3
    Join Date
    May 2005
    Location
    Cornwall
    Posts
    3,590
    Tokens
    2,900
    Habbo
    Feyod

    Latest Awards:

    Default

    that's quite intresting Mentor, i have never heard of that
    Occasionally visit and have a nose.

  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by Steven™
    that's quite intresting Mentor, i have never heard of that
    Its how the stat programs determen wich contry people are from

  5. #5
    Join Date
    Mar 2005
    Location
    Kidlington, Oxford.
    Posts
    7,274
    Tokens
    0

    Latest Awards:

    Default

    mentor needs a promotion Lol, he is so helpful with stuff like this and that, he must be the one that helps most out of the webpage designers

  6. #6
    Join Date
    Jul 2004
    Location
    Sunshine Coast, Queensland, AU
    Posts
    1,830
    Tokens
    467

    Latest Awards:

    Default

    mentor so do u know the code

  7. #7
    JoeComins Guest

    Default

    Quote Originally Posted by phoenix-iv
    mentor so do u know the code
    He's just said he doesn't know it.

  8. #8
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Welll you can get the TW ip to contry db from this link ftp://ftp.tracewatch.com/ip2c.zip (download) then look all the stufff up from that.

    or for more info
    http://www.tracewatch.com/doc/ip_to_country.php
    http://ip-to-country.webhosting.info/

    Then the .htaccess part is pretty simple

    Ok to block everyone, then only allow a certain contrys ip for exsample this would be the content

    Code:
    order deny,allow
    deny from all
    allow from 00.00.000.00
    allow from 00.000.00.
    OK the first one is blocking a full ip, indevdicauly, the second one is blocking any ip wich machs the first part

    00.000.00.

    blocks 00.000.00.01
    00.000.00.00
    00.000.00.89
    or any other thingy, just end with a period, and after it becomes varibel

  9. #9
    Join Date
    Jul 2004
    Location
    Sunshine Coast, Queensland, AU
    Posts
    1,830
    Tokens
    467

    Latest Awards:

    Default

    I think thats a bit compilcated

  10. #10
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    it allways thinks i am from america when i am in the uk it might be that AOL's proxy servers are in america if that is the case then i dont think it is a good idea to block ip codes as you might block ppl from the contry u allowed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •