Dupe IP Kicker
 

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

Dupe IP Kicker

Started by BlazeXxX, 31 October, 2003, 03:27:23

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BlazeXxX

A Dupe/Dble IP chekcer from Piglja

-- Start Copying from this line
-- An easy DoublesKickBot by piglja - 26/04/03
-- Added a IP script by piglja - 29/04/03. IP Allow script by Don Leon, if I remember correct...

botname = "DoubleKick"
ip={}
oAllow={}

function Main()
oAllow["127.0.0.1"]=1 --Just an example;)
end

function NewUserConnected(user)
theIP=user.sIP
local a,b,c,d=splittip(theIP)
if ip[user.sIP] == nil then
ip[user.sIP]=user.sIP
elseif ((oAllow[a]==1)or(oAllow==1)or(oAllow[c]==1)or(oAllow[d]==1)) then
else
user:Kick("No doubles allowed!!!")
end
end

function UserDisconnected(user)
ip[user.sIP]=nil
end

function splittip(IP)
r,g,a,b,c,d = strfind(IP, "(%d*).(%d*).(%d*).(%d*)")
d=a.."."..b.."."..c.."."..d
c=a.."."..b.."."..c..".*"
b=a.."."..b..".*"
a=a..".*"
return a,b,c,d
end

-- Finish Copying

plop

use this 1 with care.!
there are some isp wich use 1 ip for multiple users.
nextgentel is 1 of them.
a quick search on the vikings hub gave me 27 nicks on 1 single ip.
sad but true.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

klownietklowniet

That is dynamic ip for you... :-)
[ > DC - UniteD < ]

BlazeXxX

Hehe.. True.. I sometiems wonder how come two ppl in the same ip.. Poor ISPs , can't provide seperate IPs  :P

plop

QuoteOriginally posted by klownietklowniet
That is dynamic ip for you... :-)
no it's not dynamic @ all.
1 of the users is a operator on 1 of our hub's.
you'll see that they always are pasive as they can't change anything in the router, because the isp owns that.
the reason for this stupid thing from the isp can be or not willing 2 buy new ip's or simply not able 2 get more ip's
china is gone start using ipv6 soon as they're also nearly out of ip's.
kinda weird as you think of the fact that america own's 75% of all the ip's avail and have loads free.
selling them would solve all problems for a couple years.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

klownietklowniet

*offtopic*

When the ISP via DHCP provides a different ip number to it's clients, that's called a dynamic ip number.

The passive part has got nothing to do with it. Means only that the ISP has provably set restrictin on their connection, like not permiting incomming connections.

About USA having 75% of the ip numbers, I don't know that... but I think that most of the internet is povably in that part of the world. Need it there. IPv6 should solve some problems regarding limited number of ip number. A professor once said that there will be enough ip numbers for all house appliances, so even they can be online! Don't really see the use in that... but I guess something being possible is just as important... for those that really want to have their entire house online and can't get enough of HiTech stuff....
[ > DC - UniteD < ]

SMF spam blocked by CleanTalk