Web Hosting Info

Search:

featured partner

The IP to Country Database

  Forum Topics : News and Announcements / HTTP GET based Web Service is DOWN for now
Submitted by sandeep on Tue, 07/15/2003 - 02:58.
We have been experiencing very high loads on our server due to abuse by certain individuals. This has forced us to take down the HTTP GET based Web Service for now. It will be introduced in the near future with certain restrictions. In the meantime, the only way to use the database is to download it.

We are sorry for the inconvenience this has caused you all.
Comment viewing options:
Select your preferred way to display the comments and click 'Save settings' to submit your changes.
Hey
Posted by cyanid on Wed, 07/16/2003 - 11:28.
You could make an extremely fast "searcher" with not much work, all it requires is about 4,3gigs or space...(can be made less with a little work)

Simply, only 202 countries are present, one byte is enough for each IP, then you allocate 256^4 of space (approx 4,3gig) where each byte represents an IP address which then points to a contry... (less space can be used by removing "dead" IP address areas), using filesystem instead.

Using this you could easily smash 500.000 hits per second...
If interested I would be happy to tell you more.

If there are questions about this, please contact me.
 
Disk access is very slow
Posted by Electrum on Thu, 07/29/2004 - 19:27.
Disk access time is measured in milliseconds. It would be much faster to use an in memory balanced binary search tree. With the current database size it would take less than 20 node comparisons to match any IP address.
HTTP GET based Service via DEMO site
Posted by tobo- on Fri, 07/18/2003 - 09:12.
As it was posted the http get based service is down due to high loads, but you might have noted that it is possible to use the demo site for the same thing.

Querying http://ip-to-country.directi.com/node/view/36/?ip_address=10.1.1.1 returns the web page which contains the reply, then by grepping the line which contains the queried ip address you can get the country it belongs to.

You might want to correct this... I would suggest you to start_session() in php and assign a rand() value to $_SESSION["var"], then use this random value in an in the form and also a $_SERVER[REMOTE_ADDR] added to this value (possibly generate the value with md5()) so that it can only be used via your website.
 
Already being fixed!
Posted by sandeep on Fri, 07/18/2003 - 10:56.
This is something we have noticed and it is being fixed! Thanks for pointing it out though.

I dont like the "Enter the number you see in the image" way of doing it as it is very cumbersome, so was actually looking at doing what you had suggested! :)
Pity about the web service
Posted by Charlie Dick on Fri, 08/08/2003 - 08:45.
Pity the web based service was very nice and useful. How are things shaping up for reintroduction of the service?

Charlie
About ip-to-country installing and configure
Posted by olay on Sat, 12/13/2003 - 16:31.
i have already add on my bot source scripts/ip-to-country.tcl
and i already download the cvs then i put it on /home/olay/eggdrop/
but i rehash my bot.. and its not working .. can yoou tell me where i put the cvs ? and what i will type to check the ip
please email me at xmasolay@yahoo.com please..

oLaY
Sound
Posted by Jomas56 on Sat, 05/05/2007 - 01:10.
This strange, I think: teens butt Them big teens butt. anal cum movies Watch anal cum movies now. mature asshole Her mature asshole is very attractive. teen anal pain Is teen anal pain pleasure? lesbian fuck machines They found lesbian fuck machines here. gay toying Gay toying? You said? fetish pee Hotel named: " fetish pee " asian wife black Asian wife black, isn't it? big boob sluts There are few pretty big boob sluts. fet hentai My hobby is fet hentai. gay machine fucking There are gay machine fucking in the room. lesbian banana It was lesbian banana sex. mature at beach ' Mature at beach ', exactly! big brunette tits Her big brunette tits are the great. asia ass fucked It is asia ass fucked girl. anal herself Dan want anal herself now. Really, strange.