thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: banlist plugin  (Read 86040 times)

Offline Anixter

  • Jr. Member
  • **
  • Posts: 10
Re: banlist plugin v2.0.0
« Reply #15 on: August 26, 2009, 03:10:18 AM »
I know this is bumb but where does this banlist go? With my ban file I have in my mod?
How would b3 use it then?

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: banlist plugin v2.0.0
« Reply #16 on: August 26, 2009, 09:32:07 AM »
I'm assuming that you're using CoD4. This plugin allows you to load bans from banlists (such as an echelon banlist as so: XLR8or UrT banlistp

This allows you to share bans between servers whilst not sharing user levels, or automatically downloading and updating banlists like punksbusted or pbbans.

Offline Anixter

  • Jr. Member
  • **
  • Posts: 10
Re: banlist plugin v2.0.0
« Reply #17 on: August 26, 2009, 06:33:37 PM »
Does PB need to be on?


Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: banlist plugin v2.0.0
« Reply #18 on: August 26, 2009, 06:37:41 PM »
depends on the banlist. For example, the banlist I linked you to is an Urban Terror banlist that uses IPs only, and Echelon by default (for some reason) generates IP banlists.

the PsB and PBB banlists would be using PBGUIDs for authentication.

Offline Anixter

  • Jr. Member
  • **
  • Posts: 10
Re: banlist plugin v2.0.0
« Reply #19 on: August 28, 2009, 12:38:15 AM »
Well I need IP's to ban not just GUID's.

Not working for me but I will keep at it. PB is off on the server if thats a problem.

If anyone has got this working for call of duty 4 please let me know what you did......have a real pain of a player I would love to stop dead in his tracks. Want to ban a segment from a provider to stop his ip changing.

Thanks

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: banlist plugin v2.0.0
« Reply #20 on: August 28, 2009, 12:54:49 AM »
@Anixter : this plugin does not produce any banlist, but reads and enforces existing banlists.

All you have to do is to create a banlist file (let call it c:/banlists/assholes.txt)
If the IP of the guy you want to ban is www.xxx.yyy.zzz, then add it on a line in c:/banlists/assholes.txt

Quote from: c:/banlists/assholes.txt
# banlist of assholes IPs
#

www.xxx.yyy.zzz // teamkilling

now configure the banlist plugin as such :

Code: xml [Select]

<configuration plugin="banlist">

    <settings name="global_settings">
        <!-- level from which players won't be checked, thus never be kicked. (default: 100) -->
        <set name="immunity_level">100</set>
       
        <!-- do you want to update banlists that provide an URL automatically every hour ? (default: yes) -->
        <set name="auto_update">no</set>
    </settings>

    <settings name="commands">
        <!-- Command to list all loaded lists -->
        <set name="banlistinfo-blinfo">100</set>
       
        <!-- Command to update all lists from their URL (if any) -->
        <set name="banlistupdate-blupdate">100</set>
       
        <!-- Command to force checking of connected players -->
        <set name="banlistcheck-blcheck">100</set>
    </settings>

<!--
You can define as much banlist files as you want.
banlists can be of 4 types : ip banlist, ip whitelist, guid banlist or guid whitelist
Each banlist definition contains the following information :
* name : the name of the banlist, will be used as a reason for the kick (useful to find them in Echelon)
* file : the path to the banlist file.
- ip banlist : a file containing ip to ban, compatible with quake3 banlist format. If an ip ends with ".0", the full range will be banned. Lines stating with "//" will be ignored.
- guid banlist : a file containing guid to ban. Lines stating with "//" will be ignored.
* message : an optional message that will be displayed in game. Keywords that can be used : $id, $ip, $guid, $name
- NOTE:  the ban message is only visible to other players. The banned player WILL NOT SEE that message as it is kicked before having a chance to load the map.
* url : an optional url from where the banlist file will be updated hourly
* force_ip_range : yes/no. If yes all IPs will be read as if they were ending with '.0'
-->

  <ip_banlist>
    <name>assholes</name>
    <file>c:/banlists/assholes.txt</file>
    <force_ip_range>no</force_ip_range>
    <message>^4$name^7 is ^1BANNED^7, reason: is an ^5asshole</message>
  </ip_banlist> 


</configuration>


And that's it.

Now, let say you want to ban any IP starting with www.xxx.yyy. then you can use the following option in your config :
Code: xml [Select]

    <force_ip_range>yes</force_ip_range>


You can edit c:/banlists/assholes.txt with your favorite editor anytime you want with immediate effect on the bot without any bot restart or any other intervention.
« Last Edit: August 28, 2009, 01:00:19 AM by Courgette »

Offline fusi0n556

  • Jr. Member
  • **
  • Posts: 24
Re: banlist plugin v2.0.0
« Reply #21 on: October 12, 2009, 06:42:26 PM »
so question 1: does the banlist have to be a .txt file

question 2: does the URL the banlist thats been updated from have to  be a .txt file

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: banlist plugin v2.0.0
« Reply #22 on: October 12, 2009, 06:48:37 PM »
the banlist file must be a 'plain text' file. It does not matter if its name ends with '.txt' or not.
Call it assholes.list if you wish :)

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: banlist plugin v2.1.0
« Reply #23 on: November 27, 2009, 01:24:13 AM »
New version : 2.1.0
- in guid banlists, search is now case-insensitive

see first post

Offline zax33333

  • Newbie
  • *
  • Posts: 9
Re: banlist plugin v2.1.2
« Reply #24 on: January 19, 2010, 02:50:49 AM »
Is it possible to make the plugin ban IPs ingame? something like !banip that would add the person's IP to the banlist?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: banlist plugin v2.1.2
« Reply #25 on: January 19, 2010, 10:58:23 AM »
This plugin is not intented to create/modify banlists. It just enforces existing banlists.
Depending on your game, the poweradmin plugin can have commands that ban by IP as well

Offline dakotaboul123

  • Sr. Member
  • ****
  • Posts: 182
Re: banlist plugin v2.1.2
« Reply #26 on: January 19, 2010, 11:20:23 PM »
This plugin is not intented to create/modify banlists. It just enforces existing banlists.
Depending on your game, the poweradmin plugin can have commands that ban by IP as well


Is there a poweradmin for cod4 other then superadmin??

If so whats the link :]

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: banlist plugin v2.1.2
« Reply #27 on: January 19, 2010, 11:31:17 PM »

Offline dakotaboul123

  • Sr. Member
  • ****
  • Posts: 182
Re: banlist plugin v2.1.2
« Reply #28 on: January 20, 2010, 12:06:15 AM »
Thanks i dont see ip ban listed in the poweradmin.xml
Do i have to add it..??

Offline zax33333

  • Newbie
  • *
  • Posts: 9
Re: banlist plugin v2.1.2
« Reply #29 on: January 21, 2010, 08:09:08 AM »
The problem I run into sometimes is people aren't banned by typing !pb, instead it writes their IP to the permanent list and doesn't do anything from there.
If I pointed the banlist plugin to look at echelons banlist, would that work?
If not is their some way I could make a command to add to a banlist that the plugin could use?

I'm running Linux, and the only way I've found would be to make a script that would wget the banlist from the site, save it to a file and have the plugin read it from there, please let me know if you think that would work, or if there's a better way to do it, I don't know much about python scripting so if there's a way to do the equivalent I'd love to know, Thanks.

 


Rate this page +1 at Google Search

anything