GeoIP script - Page 4
 

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 script

Started by VidFamne, 13 April, 2004, 15:03:40

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VidFamne

#75
Oops, :)
realy sloppy coding of me :(
try to change closefile(f)
to
closefile(handle) instead
Have updated the link above.

UwV

Worked for ptokax  b 15.25  :0)

But not for TD4.99
still the same "Err0tic" story ..
\NL   The knowledge and skills you have achieved are meant to be forgotten so you can float comfortably in emptiness, without obstruction.
" Holly loves me,...  . "      ;o)

& don't forget, the motto is :
  -- SUPPORT YOUR LOCAL DJ'S --

belea

nice nice..  

i hope that DB to be always update :)

but a little question.. how can i set this script to allow only .us ppl



Thx

VidFamne

Well, >>HERE<<  is a little update. :)
It now contains 66 316 IP-ranges, from MaxMind.

belea

Hi there

Do u have a little !help command ?  i want to find the command to let only one country.. :)


Thank you again :)

VidFamne

#80
To allow a specifik country in hub here is
a little mod. of the script I've done >>HERE<< to allow "ALL" as default or
a CountryCode of your choice, which you must change through the
Usercommand every time you restart script.
Warning this is experimental so I cant guarantee anything ;)

belea

thx man..   i putted my country.. now i wait :)

belea

..but if i want  Belgia how i should put ? +Allow Belgia  ?

Thx :) and plz  reply quickly :D

VidFamne

Dont know what you mean by Belgia?
If you mean Belgium, then put in CountryCode BE

belea

i want only ppl from Belgia to be able to connect on my HUB..  

so i willl set that by using +Allow BE ?

Thx

VidFamne


belea

#86
okey...


now  my all hub its protected by your script..  :)  to be only BE ..  :p

I really hope to work.. i dont know another solution.. and its hard for me to search for all .BE  ips..  

Thx :)

belea

and btw i  have this error



Syntax error: attempt to perform arithmetic on a nil value
stack traceback:
   1:  method `UserDisc' at line 109 [file `Files/Func/fFunc.lua']
   2:  function `OpDisconnected' at line 28 [file `...kaX_0.330_15.25_\scripts\top ten + country1.lua']
   3:  method `Disconnect' [C]
   4:  method `Newcon' at line 82 [file `Files/Func/fFunc.lua']
   5:  function `NewUserConnected' at line 24 [file `...kaX_0.330_15.25_\scripts\top ten + country1.lua']

?

VidFamne

I've updated the script above. Please download again.

belea

well until now.. no errors :)

can  u tell me how often its update this IP base ?

Thx

belea

after a while.. something its show up

Syntax error: attempt to perform arithmetic on a nil value
stack traceback:
   1:  method `UserDisc' at line 109 [file `Files/Func/fFunc.lua']
   2:  function `OpDisconnected' at line 28 [file `...kaX_0.330_15.25_\scripts\top ten + country1.lua']


im sure u will come with an update :)

Thx

VidFamne

Sorry, but I cant find any bugs in script, but it may bee
that an Operator was in hub when you inserted the new script.
Therefore there's an arithmetic failure.
Its what I can come up with for now. :)
Close hub and delete whats in Save folder and restart hub, is my advice.

belea

#92
I tried that..  after i stoped and  run again the scripts

i did not need to much time to see this:

Syntax error: bad argument #1 to `strfind' (string expected, got nil)
stack traceback:

Syntax error: attempt to perform arithmetic on a nil value
stack traceback:
   1:  method `UserDisc' at line 109 [file `Files/Func/fFunc.lua']
   2:  function `OpDisconnected' at line 28 [file `...kaX_0.330_15.25_\scripts\top ten + country1.lua']
   3:  method `Ban' [C]
   4:  method `Newcon' at line 82 [file `Files/Func/fFunc.lua']
   5:  function `NewUserConnected' at line 24 [file `...kaX_0.330_15.25_\scripts\top ten + country1.lua']

And i putted BAN instead Disconnect because i want to see them in !getbanlist..  to see who can not enter :)
..and until now except  the little errors the script do a great job.. :p

 P.S. u did not told me if i can update by myself the IP data base, thx

VidFamne

Try to put; curUser:Ban()
before; curUser:Disconnect()

And about the database, its rather complicated story, to convert to tables.
But it seems to be updated once in 1 or 2 months.

belea

hi there

VidFamne i think u are right..  when i restart my scripts and put another order for scripts..  i have others errors but with others scripts..  i guess its something with my ptokax version..  :)


and until now your script do a great job.. no bans on my ppl... :) and no join from ppl from others countries


Another question..  if in this time 1-2 months i will see my country IPs  that get ban from the script.. i can not modify the DB and add others IPs ?

belea

someone could connect and was no BE ip.. :(

This IP: 217.229.94.89
inetnum:      217.224.0.0 - 217.237.161.47
netname:      DTAG-DIAL15
descr:        Deutsche Telekom AG
country:      DE

and
This IP: 82.84.4.54
inetnum:      82.84.0.0 - 82.84.255.255
netname:      TISCALINET
descr:        Tiscali SpA
descr:        PROVIDER
country:      IT

so maybe a little update or something ? :)

Thx

belea

Hi there


I tried again and pay more attention..

and its seems to do the jobs.. but every time when i restart the scripts i must put +Allow BE :)

I can not set that in the file.. so every time to have only BE ?

Thx..  i really hope to work :D

VidFamne

#97
Change the default value "ALL" to a CountryCode of your choice,
in your case "BE", in function Main().
As a side note; CountryCodes can be found HERE

belea

Hi there

For 2 days i run my hub using your script to keep others countries out .. and guess what ?  its work perfectlly not even one country in..  or at least i did not saw :)   but only one request..   u can do something so every one could update the IP date base ? :)


P.S. this script will be the only solution for blocking others countries..  like GeoIP for VerilHub ;)

Good job Vid

belea

Hi there

VidFamne plz if u can add a little obtions..  :)

I want to be able to put some IP ranges that do not be cheched..  like 192.168.0.1/24 or 192.168.0.0 - 192.168.0.256

Because right now they are a few IP ranges that are from my country but geoip dont see that...  and until it will be a new update.. i want to put manually those IP ranges..  

Thax man :)

SMF spam blocked by CleanTalk