GeoIP Lite City 0.3
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

GeoIP Lite City 0.3

Started by CHILLCODE?, 17 December, 2006, 00:51:44

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CHILLCODE?

--[[
	CHILLCODE? production

	GEOIP LITE "CITY"
	A Lite Version of GeoIP since, less functions, but with the Cities Database.
	Not storing the values in a table makes the bot a bit slower, but less memoryusing.

	"DO NOT COMPILE"

	INSTALL:
	   Download GeoLiteCity Zip from
		http://www.maxmind.com/download/geoip/database/GeoLiteCity_CSV/
	   Extract to:
		scripts/GeoIPLite/
	   Run script
		be patient at first start, script needs to build its database, plus there will be an error at first startup, just restart
	
	CHANGELOG:
	-----------------------
	V 0.2  -  17/12/2006:
		Made Latitude, Longitude Google Earth Conform
		Fixed: Error with users not in Profilelist (thx Lightgirl_XP)

	V 0.1  -  16/12/2006:
		Started

	-----------------------

	Benchmark: (maxmind: http://www.maxmind.com/app/benchmark )

			GeoIP Database	Cache	# of Queries	Time to Process (s)	Queries/Second

	MAXMIND:	
	  C API		GeoIP City 	None 	60,000		2.701370		22,211
	  Java API	GeoIP City 	None 	1,500 		0.263 		5,703
	  Pure PHP API	GeoIP City 	None 	10,000 		16.13904		619

	GeoIPLite:
	  LUA API		GeoIP City	None	60,000		43.657	 	1,374

	IP-Bot (by Chill)
	  LUA API		GeoIP Country	Yes	100,000		4.62500		21,621

	We would be much faster if using a memory based method, but that would need around 70MB, if not more.
	At least we beat the PHP API.
	
]]--

nEgativE

Great Work there :)
Thx for this excelent script

CHILLCODE?

#2
ths [PT]negative much appreciated

new verison is out, also with brasilian portuguese language ;) and german

CHILLCODE? production

	GEOIP LITE "CITY"
	A Lite Version of GeoIP since, less functions, but with the Cities Database.
	Not storing the values in a table makes the bot a bit slower, but less memoryusing.

	"DO NOT COMPILE"

	INSTALL (Do a clean install, remove all old files first):
	   Download GeoLiteCity Zip from
		http://www.maxmind.com/download/geoip/database/GeoLiteCity_CSV/
	   Extract to:
		scripts/GeoIPLite/
	   Run script
		be patient at first start, script needs to build its database,
		plus there will/can be an error at first startup, don't bother
		please restart the script once after building the database
	
	CHANGELOG:
	-----------------------
	V 0.3 -   18/12/2006:
		Added Brazilian Portuguese Language File (thx to 7P-Darkman)
		Added Language File (English)
		Added Language File (Deutsch)
		Added Table with own IP's to check before checking GeoIPCityDatabase ( GLite.MyRanges )

bastya_elvtars

Hmm, don't you want to upload to the repository instead of attaching?
Everything could have been anything else and it would have just as much meaning.

CHILLCODE?


bastya_elvtars

Quote from: CHILLCODE? on 18 December, 2006, 16:07:58
where is that?

OK, now you will see it after a relogin, in the left menu (Tools).
Everything could have been anything else and it would have just as much meaning.


TrIp-iN-SuN

tell me same thing all users can to in the hub it's not blocken for same ip?

elgee

hum, I have actully no idea what you just said or asked rather.

But I do guess it has with access to IP on the users.
First of all, an p2p as DC will never "hide" your IP for others. It's needed for the transfer between you and the other client. So no mather what you set the settings to IP can still be revealed.


If you cared to download and read the script you would have seen there is settings for who has access where.

and
Thanks CHILLCODE? for a light script that runs without problem, and gives me a hint more or less where the person is without to much effort from me, I am lazy ;)

CHILLCODE?

Quote from: TrIp-iN-SuN on 02 January, 2007, 21:59:05
tell me same thing all users can to in the hub it's not blocken for same ip?
I interpreted it this way, you want to know if users with the same IP can access the Hub, yes they can and it's not that this script should do anything about it nor would it be usefull, although more people connecting from one LAN are not so common, this script should only find out to which country the ip belongs, light and simple :)

And elgee your welcome  ;D

TrIp-iN-SuN


TrIp-iN-SuN

#11
tell me y when i try to check same ip to see from where him i can't i see this alwyas
   IP: 87.68.148.27
   From: N/A ( N/A ), N/A ( N/A N/A )

   IP: 86.80.204.137
   From: N/A ( N/A ), N/A ( N/A N/A )

   IP: 89.210.78.106
   From: N/A ( N/A ), N/A ( N/A N/A )

   IP: 87.242.40.158
   From: N/A ( N/A ), N/A ( N/A N/A )

every thing his not find lol and take 115 mb that script is big




TrIp-iN-SuN

CHILLCODE? u can tell me y it's not work?

CHILLCODE?

Okey I tried the IP's and they do work here, I changed somethings in the script by now,
but I checked with an elder version it also worked so, I am sorry to tell you that I have no clue
why it shouldn't work if set up correct.

but to reduce your diskspace you can delete all *.cvs files after the *.dat files were created.

maybe you should just delete everything again and try to set it up newly, if that doesn't help then
well maybe the script doesn't like you ;)

TrIp-iN-SuN

i thing that script not like me nathing is not work heheh

nEgativE

Hey CHILLCODE?, to update the GeoIP files, in first place.. should i delete the database files right ? put the new GeoIP and run the script after.. i guess.

Thx in advance, great work again.

CHILLCODE?

Quote from: nEgativE on 01 February, 2007, 20:18:34
Hey CHILLCODE?, to update the GeoIP files, in first place.. should i delete the database files right ? put the new GeoIP and run the script after.. i guess.

Thx in advance, great work again.

THX :), and right you are, I'll try to make it a bit clearer in the next version.

7P-Darkman

Hello friends...


It is possible to restrict the access to the commands, based in profile of user?  For example, it would not like that users not-registered had access to the commands of this script.

Respectfully,


7P-Darkman
Owner of HUB Pantanal - Brasil

CHILLCODE?

yes is possible in a way,

Code: lua
GLite.Cmd = {
	-- level 0
	Help = { GLite.Msg.help, 0 },
	MyCountry = { GLite.Msg.mycountry, 0 },
	TopCountries = { GLite.Msg.topcountries, 0 },
	TopCities = { GLite.Msg.topcities, 0 },
	 -- level 1
	GetCountrybyName = { GLite.Msg.getcountrybyname, 1 },
	GetCountrybyIP = { GLite.Msg.getcountrybyip, 1 },
}

if you change this to
Code: lua
GLite.Cmd = {
	-- level 0
	Help = { GLite.Msg.help, 1 },
	MyCountry = { GLite.Msg.mycountry, 1 },
	TopCountries = { GLite.Msg.topcountries, 1 },
	TopCities = { GLite.Msg.topcities, 1 },
	 -- level 1
	GetCountrybyName = { GLite.Msg.getcountrybyname, 1 },
	GetCountrybyIP = { GLite.Msg.getcountrybyip, 1 },
}

it should work, but I am thinking in changin it to a more versatile way.. what would you think of
Code: lua
GLite.Cmd = {
	Help = { GLite.Msg.help, { [0]=1, [1]=1, [-1]=1, ... } }
}

where, in [ ] is the Profile, allowed to use the command ..., does this make it more clear?
greets



elgee

Quote from: CHILLCODE? on 23 February, 2007, 17:41:24
it should work, but I am thinking in changin it to a more versatile way.. what would you think of
Code: lua
GLite.Cmd = {
	Help = { GLite.Msg.help, { [0]=1, [1]=1, [-1]=1, ... } }
}

where, in [ ] is the Profile, allowed to use the command ..., does this make it more clear?
greets

You did not ask me, but I prefear the last version  8)

7P-Darkman

Hello CHILLCODE?...


Works very fine now... many thanks !

Respectfully,


7P-Darkman
Owner of HUB Pantanal - Brasil

SMF spam blocked by CleanTalk