Notify user if IP is banned Is this possible ?
#1
Posted 28 September 2004 - 04:30 PM
When users try to connect from an IP that is not allowed, then users only get
"421 Not logged in, access denied."
Is it possible to tell the user that the IP is denied/banned ?
Maybe with a script or something ?
#2
Posted 28 September 2004 - 04:39 PM
OnClientBanned : client tried to connect but is banned from domain
Edit:
But :
I is only triggered in "Domain" context.
It can't send messages to Client (or too late). (Post doesn't work as there are no more server messages after)
This post has been edited by CodSpirit: 29 September 2004 - 12:26 AM
(I have some case sensivity problems)
#3
Posted 28 September 2004 - 09:00 PM
Made this script:
client.send 421, "IP is banned"
end sub
this is the serverlog:
04/09/28 21:57:25, 23, 172.16.0.2, boost, will be disconnected : IP is banned.
04/09/28 21:57:25, 23, 172.16.0.2, boost, 421 IP is banned
And this is the ftp client log
[21:57:25] Connection failed
#4
Posted 28 September 2004 - 09:10 PM
(I have some case sensivity problems)
#6
Posted 01 December 2004 - 12:48 PM
(I have some case sensivity problems)
#8
Posted 01 December 2004 - 12:51 PM
But we can see with the developper is this is possible ... there's hope until he said "no"
(I have some case sensivity problems)
#9
Posted 01 December 2004 - 02:01 PM
- If you want to send a reason/tell to user why he is banned, just use reason in the ip access list
- If your ip access list only has + entries then add a -* entry with a reason[/QUOTE]
- If you want to change "Not logged in, access denied" you can do it !
Just edit your domain's settings.ini file and look for the line :
[Messages]
(If you can't find it, just add it at the end.)
Then add these lines :
msgUnauthorizedAccessWithReason=Not logged in, access denied (%s).
msgUnauthorizedAccess=Not logged in, access denied.
Now, you can change the messages to whatever you want. In msgUnauthorizedAccessWithReason, the %s is replaced by the reason.
Ie:CODE[Messages]
msgUnauthorizedAccessWithReason=IP banned (Reason : %s).
msgUnauthorizedAccess=IP banned.
This post has been edited by CodSpirit: 01 December 2004 - 02:04 PM
(I have some case sensivity problems)
#10
Posted 24 January 2005 - 01:46 PM
#12
Posted 08 June 2005 - 11:13 PM
Well, for me an "unauthorized ip" IS a perm ban.
Please me more explicit
And I suggest making a new topic for this as it is a little off-topic here.
(I have some case sensivity problems)

Help











