PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Pedro on 12 May, 2004, 23:37:28

Title: script for banning host
Post by: Pedro on 12 May, 2004, 23:37:28
I am looking for a script that can ban a users host as Irc does when kicking and banning.

this would be ideal in dealing with users on dynamic ip.

for example

.range217-42.btcentralplus.com
Title:
Post by: plop on 13 May, 2004, 03:08:21
check the hostname you posted.
the name is linked 2 the ip.
so pls edit your post and remove the hostname/ip.
and you can't grab the host name for everybody.

plop
Title:
Post by: Pedro on 13 May, 2004, 04:02:19
sorry bout that plop, and thanx for putting that query to rest..
Title:
Post by: kepp on 14 May, 2004, 02:34:26
I like the method of blocking a Hotname ~= the one you want..   then disconnect

it's fast and easily done..

However, as plop says you can't get a hostname from everybody..

But if you are sure that a certain part allways is available and allways can be retrieved then you could block a whole lot of ranges by 6 lines of code or so

.range217-42.btcentralplus.com

Suppose you only want to allow people from withing this range to enter...

then you must be sure at least 1 part stays the same
".btcentralplus.com"