IP logging/blocking/temp banning (client side - op script)
 

IP logging/blocking/temp banning (client side - op script)

Started by bliskner, 06 May, 2004, 17:14:27

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bliskner

This sort of script may exist already but as i have no clue which one does what or even how to use scripts i was wondering if someone could write one for me.

I am using version 0.401a of BCDC++ which already has a number of built in lua scipts but i don't understand how they work so writing my own is out of the question

I am an OP on a university hub which should only allow users who are on the university network to join the hub - unfortunately some ppl not on the network have found ways to fool the bot we currently use to block external users.

the script i would like would be client side residing in a single file on my machine which would do the following things :

1) log the ip, nickname, connection time and total connection attempts of everyone who joins the hub - even if it be only for a few seconds and save this to an external data file. preferably this file would be some sort of table which could be read in either a standard spreadsheet program or a browser window - (which doesn't actually matter)

this data file should associate users if they have the same ip but different nicks so as to flag people who change nick in an attempt to fool the blocker / op into thinking they are someone else

if at all possible - i know this is asking alot - it would be nice if the script could perform a reverse dns lookup on the ip in question and save the domain name in the file as well (this is less important because this could be easily checked manually)

2) the script should then kick any user who is not part of a range of ip's which are specified in some way - again an external data file would be best - and who is not logged in as an OP. As the person who is running the script (me) is an op this should i suppose be possible. in addition to this it would be nice if before the user is kicked they are sent a private message which tells them they have been kicked and why and also prints in the main chat that user X with IP x.x.x.x was kicked for being external.

3) finally, i would like the script to allow users to be temporarily banned and kicked from the hub with a command (either right click on user list or a command from hubchat) and for that user to be sent a message telling then why they have been kicked and for how long. (and i know this is probably a server side thing normally but our server is inaccessable being about 150miles from the university on a friends permanent broadband connection and is very low tech supporting very few features and woefully inadequate hub software).


##################



if there is a script around that does this then please point me in the right direction - please note i know nothing about scripting in lua so whatever i get should be a simple single file which will be initiated when BCDC++ starts up and requires very little checking or changing on my part except to change the specific messages involved

i have looked through the pages of completed scripts but as i don't know enough about scripting to tell what they do i couldn't know whether they were right for me


any help with be very greatfully appreciated

bliskner

is there really nobody who can help? or at least tell me I'm barking up the wrong tree and it can't be done, or it can be done but no one will do it because it will take too long?

Please?

chill

thing is, it could be done but it is quite a work through,

cause when a client connects your client will only know it when the client already has connected, then the hub would also need to send you the ip of the client , then your client would need to check if allowd send a message back to the hub if it is allowed, then the hub would allow it or disconnect it.

So doing it client side is not a good way.

plop

why not use a firewall 2 block connections 2 the hub which aren't on the univ net??

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 <----<<

bliskner

we can't do that - the hub is not on a machine on the network and is on a friends webserver - so its not just serving the hub - thus using a firewall probably wouldn't work

SMF spam blocked by CleanTalk