Raised This Month: $51 Target: $400
 12% 

IP Range Ban based on MySQL


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Cep}|{
Member
Join Date: Nov 2009
Plugin ID:
1435
Plugin Version:
1.0
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    IP Range Ban based on MySQL
    Old 01-29-2010 , 08:14   IP Range Ban based on MySQL
    Reply With Quote #1

    IP Range Ban based on MySQL

    Description:

    Ban range IP's on MySQL.

    Cvars:

    sm_iprangeban_mysql_version
    sm_iprangeban_mysql_enable - Enables this plugin. Default: "1"
    sm_iprangeban_mysql_prefix - Table prefix in database. Default: "sm_iprangeban"
    sm_iprangeban_mysql_dbconfig - Name of database config in database.cfg. Default: "ip_range_ban"
    sm_iprangeban_mysql_uwl_ip - Enable\disable use white list IP's. Default: "0"
    sm_iprangeban_mysql_uwl_id - Enable\disable use white list SteamID's. Default: "0"
    sm_iprangeban_mysql_logging - Enable\disable logging kicked players. Default: "0"

    DB structure description:

    Table prefix_ip_range:
    `id` - range ID
    `start` start IP range
    `end` end IP range
    `text_to_kick` - text to kicking reason
    `comment` range comment for administrators

    Table prefix_kicked_players:
    `id` - row ID
    `ip` - blocked player IP
    `steam` - blocked player SteamID (if sm_iprangeban_mysql_uwl_id is 1)
    `name` - blocked player name
    `time` - time

    Table prefix_white_list_ip:
    `ip` - allowed player IP

    Table prefix_white_list_id:
    `steam` - allowed player SteamID

    If there are no tables, they will be created automatically )

    Installation:

    1. Edit your addons/sourcemod/configs/databases.cfg file and add a new section (or declare existing in sm_iprangeban_mysql_prefix):
    Code:
        "ip_range_ban"
        {
            "driver"            "mysql"
            "host"            ""
            "database"      ""
            "user"            ""
            "pass"            ""
            //"timeout"            "0"
            //"port"            "3306"
        }
    2. Upload the plugin in the 'addons/sourcemod/plugins/' folder and refrash plugin list or change map or restart server.
    Attached Files
    File Type: sp Get Plugin or Get Source (ip_range_ban_mysql.sp - 5697 views - 9.4 KB)
    __________________

    Last edited by Cep}|{; 08-21-2010 at 01:50. Reason: Added public CVAR
    Cep}|{ is offline
    panda82
    Member
    Join Date: Aug 2007
    Old 06-21-2010 , 10:20   Re: IP Range Ban based on MySQL
    Reply With Quote #2

    Can you ban STEAM IDs starting for example with STEAM_1:1:... ?
    panda82 is offline
    Cep}|{
    Member
    Join Date: Nov 2009
    Old 06-23-2010 , 17:52   Re: IP Range Ban based on MySQL
    Reply With Quote #3

    No, why it?
    It theoretically possible....)

    [cutted]
    __________________

    Last edited by Cep}|{; 06-25-2010 at 08:26.
    Cep}|{ is offline
    Vlad1
    New Member
    Join Date: Oct 2009
    Old 07-06-2010 , 00:19   Re: IP Range Ban based on MySQL
    Reply With Quote #4

    Quote:
    Originally Posted by Cep}|{ View Post
    No, why it?
    It theoretically possible....)

    [cutted]
    Как это работает?
    Vlad1 is offline
    Cep}|{
    Member
    Join Date: Nov 2009
    Old 07-06-2010 , 16:25   Re: IP Range Ban based on MySQL
    Reply With Quote #5

    Quote:
    Originally Posted by Vlad1 View Post
    Как это работает?
    Что именно?
    __________________
    Cep}|{ is offline
    Vlad1
    New Member
    Join Date: Oct 2009
    Old 07-12-2010 , 01:22   Re: IP Range Ban based on MySQL
    Reply With Quote #6

    Quote:
    Originally Posted by Cep}|{ View Post
    Что именно?
    Оно.
    Напиши инструкцию по установке и использованию.
    Я поставил - все работает, но надо каждый раз руками в безе диапазоны прописывать.
    Есть консольные команды для игровых админов?
    Vlad1 is offline
    Cep}|{
    Member
    Join Date: Nov 2009
    Old 07-20-2010 , 14:06   Re: IP Range Ban based on MySQL
    Reply With Quote #7

    Приходится часто прописывать? С чего бы вдруг?
    Консольных команд нет, считаю они не нужны.
    __________________
    Cep}|{ is offline
    bigbrain911
    BANNED
    Join Date: Jul 2009
    Old 08-29-2010 , 20:31   Re: IP Range Ban based on MySQL
    Reply With Quote #8

    Было бы не плохо если бы добавили консольные команды и прикрутили вебинтерфейс или к соурсбану, в общем любой веб интерфейс чтобы админы могли добавлять баны подсетей авторизировавшись по логину и паролю + чтобы отображался список забаненых подсетей и тот кто забанил подсеть, так как масса читеров на динамических ip это очень актуальная проблема.
    bigbrain911 is offline
    Cep}|{
    Member
    Join Date: Nov 2009
    Old 09-01-2010 , 02:32   Re: IP Range Ban based on MySQL
    Reply With Quote #9

    Читеров баните по IP ?
    __________________

    Last edited by Cep}|{; 09-01-2010 at 02:34.
    Cep}|{ is offline
    Olmer
    BANNED
    Join Date: Jul 2010
    Old 09-23-2010 , 04:31   Re: IP Range Ban based on MySQL
    Reply With Quote #10

    Quote:
    Читеров баните по IP ?
    Да)
    Такой вопрос - есть ли ограничение на количество внесенных в white list id/IP? вроде вношу в список, но некоторых все равно продолжает не пускать.
    Olmer is offline
    Reply



    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 On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 19:41.


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