AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Problem Sourcebans printing to Server. (https://forums.alliedmods.net/showthread.php?t=332587)

Darkwob 05-21-2021 10:56

Problem Sourcebans printing to Server.
 
2 Attachment(s)
I am currently using Sourcebans version 1.6.3. I've gone through the web banning issues. When I ban a player, the print message to the server changes. The player writes something else in 2 attempts before 5 minutes pass. And I want to prevent that. I always want to have sourcebans write their own ban message. Can anyone help?

This article appears when a Player is banned.
https://i.ibb.co/G9xWtjF/left4dead2-...4-10-002-1.jpg

but the text in this picture appears when she tries to log in to the server again.

https://i.ibb.co/grFmtnZ/left4dead2-...4-20-838-1.jpg

Why I want to change. Because sometimes, sometimes not even the player hits the "OK" Button without reading the text there. He doesn't know why he's banned on the server or how to get information. and as you can see, the second message does not write any website or anything to get information, I am trying to show sourcebans its own message, ie the message in the first picture, every time the player tries to login to the server while the player is banned, but I couldn't help. Can anyone help?

DarkDeviL 05-21-2021 18:31

Re: Problem Sourcebans printing to Server.
 
According to the current SourceBans++ file, sb_main.sp:

Comment out where the plugin issues game engine bans, e.g.:

1. Line 1635 - 1636
2. Line 2549 - 2551

Eventually also:

3. Line 1539 - 1542

4. Line 2658, you might also want to alter the plugin from using BanClient to use KickClient instead:

Something like for example
Code:

KickClient(target, "%t", "Banned Check Site", WebsiteAddress);

ATTENTION PLEASE!

The stuff about caching the bans with game engine bans does something good, such as e.g. keeping people banned when you're having unreliable connectivity towards your SQL database(s).


If you are performing changes like the ones mentioned above (that you actually asked for), then your game server will send all the queries on each and every connect that players are doing towards your server.

While I'm banned on your server, you are opening up for the possibility that I can do reconnect spam towards your server, and then your game sever will spam your database with queries every individual time I'm trying to connect, which can potentially lead to "DoS" attack like consequences for your database server.

The game engine ban "cache" is actually doing good things for your servers / infrastructure!

Darkwob 05-22-2021 14:41

Re: Problem Sourcebans printing to Server.
 
Quote:

Originally Posted by DarkDeviL (Post 2747437)
According to the current SourceBans++ file, sb_main.sp:

Comment out where the plugin issues game engine bans, e.g.:

1. Line 1635 - 1636
2. Line 2549 - 2551

Eventually also:

3. Line 1539 - 1542

4. Line 2658, you might also want to alter the plugin from using BanClient to use KickClient instead:

Something like for example
Code:

KickClient(target, "%t", "Banned Check Site", WebsiteAddress);

ATTENTION PLEASE!

The stuff about caching the bans with game engine bans does something good, such as e.g. keeping people banned when you're having unreliable connectivity towards your SQL database(s).


If you are performing changes like the ones mentioned above (that you actually asked for), then your game server will send all the queries on each and every connect that players are doing towards your server.

While I'm banned on your server, you are opening up for the possibility that I can do reconnect spam towards your server, and then your game sever will spam your database with queries every individual time I'm trying to connect, which can potentially lead to "DoS" attack like consequences for your database server.

The game engine ban "cache" is actually doing good things for your servers / infrastructure!

Thank you for your answer. but I can say that I do not understand anything. In the case of dos, I saw that the player tried 3 times at most to join the server. I don't think this will cause a problem either. If there is no problem, can you explain it to me in more detail.

Sreaper 05-24-2021 09:46

Re: Problem Sourcebans printing to Server.
 
Quote:

Originally Posted by Darkwob (Post 2747512)
can you explain it to me in more detail.

So you can't have custom messages appear when you ban clients, only kicks. What the plugin does is kick the player with a message and then it bans them for five minutes afterwards. So for five minutes, they will not see the custom message due to how the game works. What he is suggesting is to stop banning and to just kick them instead so that people can always see the custom message.

The likelihood of someone taking advantage of this change on your server is probably very low, so feel free to go with his suggestion. But if one day and you see hundreds of kicked messages in your logs, you will know why.


All times are GMT -4. The time now is 05:17.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.