PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Nemesis on 17 May, 2004, 12:29:59

Title: Looking for a ban by hostname script
Post by: Nemesis on 17 May, 2004, 12:29:59
Pretty new to this so please bear with me, we are looking for a script which will do 3 things to help us keep a couple of undesirables out of our hub. As users can change their nick and ip addresses we was wondering if there is a script which will
1.get users hostname - say !getuserhost
2. ban by hostname - say !banhost
3. keep a record of hostbans which we can call up say - !gethostlog
If poss these commands would be for op and owner but with the option of taking op out if they abuse it ??
hope this aint too much for you experts out there. as i say above im pretty new to scripts so any sugesstions welcome. thnx  :rolleyes:
Title:
Post by: plop on 17 May, 2004, 18:41:09
on nearly every isp the hostname is linked 2 the ip, so if a user changes ip the hostname also changes.
and 2 make mathers worse, you can't get the hostname on every1.

plop
Title:
Post by: Corayzon on 25 May, 2004, 05:42:54
does ptokax have a hostname linkup or do we need to write the socket connection and handle the dns server ourselfs?

also, is there any nice examples on scoket scripting in lua5?

i know ill prob get 'use the search, it does work' but have no time to look round

thankz in advance to plops

:: polp ::
Title:
Post by: plop on 25 May, 2004, 14:50:27
was something like toHostName(ip), but i can't find the exact spelling anymore.
doing it yourself won't help much as it has the same result.
i'm 1 of the ppl who has blocked the posiblilety for hostname lookup's.
with some work arounds it's posible 2 get it some info but it's not wise 2 do it on ptokax, takes a couple webpages 2 get it.

for lua 5.0 there is a library called luasockets, but using that on bcdc can crash it sooner or later.

plop
Title:
Post by: Corayzon on 28 May, 2004, 06:42:14
hmmm...

to bad ptokax is runnin lua 4! =[

u can use _VERSION to check it