Go Back   FlashFXP Forums > > > >

! Other Scripts Support Support for all other scripts...

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-17-2003, 01:46 AM   #1
ofloofxp
Junior Member
 
Join Date: Nov 2003
Posts: 1
Default site ban & who script shows ip

this is ftp who that shows ip, and ban script that kills connection witch prevents em from downloading and shows msg njoy

Commands:
site ftpban addban <nummeric ip> : Adds a ban
site ftpban delban <nummeric ip> : Deletes a ban
site ftpban banlist : Shows currnet bannend ips
site ftpwho : Shows logged on UserName, Uid, ip

ill add commands for eggdrop soon Just to lazy today

check http://ftpservertools.tripod.com for additional kill options cause after you banned you need to kill em
ofloofxp is offline   Reply With Quote
Old 11-17-2003, 09:12 AM   #2
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

I suggest that to check for ban on login, u use the [Pre] PASS event.
Just return != 0 if the ip is banned, and io won't allow login.
Make sure the message you echo shows the right error code though ("530- bla bla" probably...)
Mouton is offline   Reply With Quote
Old 11-17-2003, 04:04 PM   #3
Ofloo
Member
 
Join Date: Jun 2003
Posts: 43
Default

oh does it give errors write now ? i mean doesn't it function well it does show a error msg i know that but is there something wrong with the script besides that it doesn't show an 530 error msg ?

also not entirly clear what you mean cause i am not realy that familiar with ioftpd .. just know tcl so could you xplain closer what your refering to ??

maybe syntax or something .. ? i know about [pre] section i mean i know it is there but why and what it is used for ..? so could you give me a clue of its output ?? so i can trigger an event from there , or where i can read up on how to trigger a error msg
Ofloo is offline   Reply With Quote
Old 11-17-2003, 04:49 PM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

[pre] events are executed before the actual command. If event returns with error, command will not be executed at all.
darkone is offline   Reply With Quote
Old 11-18-2003, 07:06 AM   #5
Ofloo
Member
 
Join Date: Jun 2003
Posts: 43
Default

could ya give some example i do understand what you mean just not sur on how that works .. ?
Ofloo is offline   Reply With Quote
Old 11-18-2003, 09:24 AM   #6
b>d>>s
Senior Member
 
Join Date: Feb 2003
Posts: 488
Default

global ioerror

then set ioerror non zero, ie. set ioerror 2
then, return.

this will stop event.

for example see READD script by harm on this board.
b>d>>s is offline   Reply With Quote
Old 11-18-2003, 11:43 AM   #7
Ofloo
Member
 
Join Date: Jun 2003
Posts: 43
Default

there is not realy an example.

if i use same way it won't out the msg nor the error..

i need to be able to use iputs -nobuffer, .. if i use it other wize like iputs "530..
or iputs "-530.. well it doesn't show the msg and with the -nobuffer i get result:
230--500 Your ip (127.0.0.1) is banned from this ftp server.
230-500- Your ip (127.0.0.1) is banned from this ftp server.
230-500 Your ip (127.0.0.1) is banned from this ftp server.
and i did set ioerror 1 set ioerror 2 tryed em both even tryed 0

still no result ..
Ofloo is offline   Reply With Quote
Old 11-24-2003, 07:51 AM   #8
Ofloo
Member
 
Join Date: Jun 2003
Posts: 43
Default

updated some stuff added some small features and no the error thing is not added yet, don't have time to read about it now do it later cause from what ive seen until now, .. well don't understand crap, also keep in mind that your using global from a itcl script, witch means global = variable added within a proc, or $::var = same but this is an itcl variable while i am using tcl not itcl .. not sur if thats the same or how that works out tho ..
Ofloo is offline   Reply With Quote
Old 12-18-2003, 01:08 AM   #9
MidKnight
Senior Member
FlashFXP Beta Tester
ioFTPD Registered User
 
Join Date: Oct 2001
Posts: 857
Default

would it be possible if we could also add a small line with reason of banning, so when the sysops look at the list of banned IP, they can also see why that ip was banned
MidKnight is offline   Reply With Quote
Old 12-19-2003, 06:18 AM   #10
iOn`mU
Junior Member
 
Join Date: Dec 2003
Posts: 3
Default banning range

Hi i'm using your script for a week or so.
I wanted to know if there a way to ban an ip range

like site ftpban addban 192.168.*.*

I have try this but your regexp doesnt allow * characters.
Can you Implement?

Thanks in advance!

iOn`
iOn`mU is offline   Reply With Quote
Old 12-20-2003, 01:21 AM   #11
Ofloo
Member
 
Join Date: Jun 2003
Posts: 43
Default

if i got time then ill add it in a weak or so ..
Ofloo is offline   Reply With Quote
Reply

Tags
ban, ftp, ftpban, shows, site


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GuildFTPd command set (import) Jesper Custom Commands 4 07-29-2011 12:41 AM


All times are GMT -5. The time now is 07:51 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)