in reply to IP - country

It's an impossible task. At best you could get a near guess, and you're probably already there. A whois query to arin.net will tell you 90% of what you need, but will be wrong 5% to 10% of the time.

Why do you need this? You can't use it for legal reasons (since you can't be precisely accurate). Are you just curious about hits?

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: IP - country
by tune (Curate) on Mar 02, 2001 at 00:27 UTC
    No i am not just curious. The policy of my employer is: block people of countries from signing up to our member areas, if there are too many hackers...
    I hope you see the point. The 5-10% is acceptable for them, and they know it is not completely accurate.
    I know it is not very ethic, but my job is just to create code... :)

    -- tune

      I don't get it. Your boss imagines that certain countries contain more hackers than others? What is this based on? Anyway, since you're the programmer, you should do your best to make the system impenetrable and give him assurances of this. Wasting your time on tracing IPs is not worth your time since the good hackers
      1. Don't come in bushels.
      2. Mask the real source of the attack.
      Frankly, I can't see what you hope to accomplish.
      AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.
        Sorry, I did not mean hackers in the classical way. This type of hacker is a cracker really. A cracker wants to make money, or do damage with his/her knowledge. So they are the ones who are not wanted by the guys here.

        -- tune

      I see a little problem there: It seems to me that - probably having the biggest density of internet users per capita - the US would also have the largest number of hackers. Would you then have to block that country too?

      (Nota Bene: I have no statistics to back this. Just a guess)

      Brother Ade