1. GSManager
    1. Funktionen
    2. Unterstützte Spiele
    3. Neuigkeiten
    4. Statistiken
    5. Serverliste
  2. Lexikon
  3. Filebase
  4. Entwicklung
  5. Forum
    1. Dashboard
    2. Unerledigte Themen
  6. Web-Interface
  7. Artikel
  8. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Dateien
  • Forum
  • Lexikon
  • Erweiterte Suche
  1. GSManager
  2. Forum
  3. Erweiterungen
  4. Anfragen

Ban IP Plugin

  • Yenz
  • 24. Januar 2012 um 21:31
Das Projekt GSManager (vormals ManuAdminMod) wurde am 01.01.2020 eingestellt - diese Internetpräsenz bleibt verfügbar, die Software wird aber nicht länger gepflegt. Vielen Dank für eure Unterstützung in den mehr als zehn vergangenen Jahren!
1. offizieller Beitrag
  • Yenz
    Entwickler
    Reaktionen
    90
    Punkte
    10.180
    Trophäen
    5
    Beiträge
    1.988
    Einträge
    9
    • 24. Januar 2012 um 21:31
    • #1

    Ban IP (Version: 2.0.1)
    With this plugin you can ban a user on the basis of its IP address. Those players will always be kicked.

    One can use the following commands:
    !banip player [reason]
    !tempbanip player duration [reason]
    !unbanip id|ip|nick

    With !banip the player's ip address and nick, the admin's guid, the timestamp and the reason will be written into the database.
    !tempbanip does the same as !banip, but also writes the duration in minutes. Is the duration is over a player with that ip can join the server.
    Do one like to remove an entry, use !unbanip with the nickname or the ip address. Should there be more than one entry for the fiven nickname in the database, the admin will get a list of them containing their ids. These ids can be used by !unbanip id to remove the entry and allow the player to join.

    Should a player try to join the server with an ip address which is registered in the database it will be kicked. Furthermore the nickname of the player will be updated in the database, to simplify the search.

    Requirements
    ManuAdminMod Version 0.11.3 or newer
    PHP >= 5.3.0
    PHP SQLite3 support

    Installation Manual
    Save the banip.php file into the plugin folder and restart the MAM.

    Configuration Manual

    Code
    [banip]
    enabled = 1
    usedefaulttempbanduration = 1
    defaulttempbanduration = 30
    cleanupeveryhour = 48


    enabled: With 1 the plugin is active, with 0 it is not working.
    usedefaulttempbanduration: Using !tempban without the duration parameter, can automatically sets the [banip]defaulttempbanduration for the duration. To disable this behaviour (and always have to call !tempbanip with the duration parameter) set this to 0.
    defaulttempbanduration: Sets the duration in minutes when call !tempbanip without the duration parameter. Therefore [banip]usedefaulttempbanduration has to be 1.
    cleanupeveryhour: After so many hours the database will be cleaned up, removing old tempban entries.

    Changelog
    version 2.0.1
    - fixed: second constructor

    version 2.0.0
    - added: unbanip
    - added: tempbanip
    - removed: banip_kick_mode (see version 1.1.0), players always will be kicked
    - using sqlite3 database instead of text file
    - object oriented

    version 1.1.2
    - edited zip folder structure

    version 1.1.1
    - bugfix: semicolon was missing, remove version 1.1.0

    version 1.1.0:
    - added feature: $banip_kick_mode (player will be either kicked or banned)

    version 1.0.0:
    - first version

    12 Mal editiert, zuletzt von Yenz (6. Februar 2013 um 21:40)

  • Yenz
    Entwickler
    Reaktionen
    90
    Punkte
    10.180
    Trophäen
    5
    Beiträge
    1.988
    Einträge
    9
    • 21. Februar 2012 um 21:15
    • #2

    Version 2.0.0 is online.

  • Jimmyroots
    Anfänger
    Punkte
    65
    Beiträge
    10
    • 25. Februar 2012 um 07:34
    • #3

    Hey Man!

    Thanks for the update :) Any chance of some code to allow the viewing of the database from a webpage including the BanID, Nickname, Admin who Banned (preferably nickname but GUID if that isnt possilbe) , IP Address, Timesatmp and Reason. Something like this: http://pastebin.com/fCqeQWic This is for another addon but something along those lines.

    One more thing is it possible to have more than 1 server banning to same database?

    Einmal editiert, zuletzt von Jimmyroots (25. Februar 2012 um 12:09)

  • Dieses Thema enthält 30 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind.

Benutzer online in diesem Thema

  • 1 Besucher
  1. Mitarbeiter
  2. Datenschutzerklärung
  3. Nutzungsbedingungen
  4. Impressum
  5. Kontakt
Community-Software: WoltLab Suite™