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: ProxyFilter Plugin  (Read 2981 times)

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 984
    • GitHub
ProxyFilter Plugin
« on: May 12, 2014, 05:19:23 PM »
Description

A BigBrotherBot plugin will prevent people connected through a proxy to join your server.

Installation

  • copy the proxyfilter.py file into b3/extplugins
  • copy the plugin_proxyfilter.ini file in b3/extplugins/conf
  • add to the plugins section of your b3.xml config file:

<plugin name="proxyfilter" config="@b3/extplugins/conf/plugin_proxyfilter.ini" />

Proxy detection

In order to detect proxy connections this plugins make use of the following services:


If you know about other proxy detection services offering free or paid API please leave me a message and I will provide support also for those.

In-game user guide

  • !proxylist display the list of available proxy checker services
  • !proxyservice <service> <on|off> enable/disable a proxy checker service
  • !proxystats display statistics about detected proxies

Download

Last release: https://github.com/danielepantaleone/b3-plugin-proxyfilter/archive/master.zip
« Last Edit: November 30, 2014, 11:38:45 AM by Fenix »

Offline Xyn

  • Jr. Member
  • **
  • Posts: 27
    • Team #Lf Multigaming
Re: ProxyFilter Plugin
« Reply #1 on: June 18, 2014, 02:08:54 AM »
Hi Fenix,

I've tried this plugin tonight on my B3 1.9.2, it shows an errors in log :

Code: [Select]
ERROR	'handler ProxyfilterPlugin could not handle event Client Connect: AttributeError: \'NoneType\' object has no attribute \'append\' [(\'/home/bot/b3/parser.py\', 1055, \'handleEvents\', \'hfunc.parseEvent(event)\'), (\'/home/bot/b3/plugin.py\', 158, \'parseEvent\', \'self.onEvent(event)\'), (\'/home/bot/b3/extplugins/proxyfilter.py\', 422, \'onEvent\', \'self.onConnect(event)\'), (\'/home/bot/b3/extplugins/proxyfilter.py\', 441, \'onConnect\', "if client.maxLevel >= self.settings[\'maxlevel\']:"), (\'/home/bot/b3/clients.py\', 471, \'_get_maxLevel\', \'if self.groups and len(self.groups):\'), (\'/home/bot/b3/clients.py\', 230, \'getGroups\', \'self._groups.append(g)\')]'

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 984
    • GitHub
Re: ProxyFilter Plugin
« Reply #2 on: June 21, 2014, 11:35:25 AM »
That's weird, can you post a longer B3 log so I can check better what's happening?

Offline Beyond

  • Jr. Member
  • **
  • Posts: 14
Re: ProxyFilter Plugin
« Reply #3 on: December 13, 2015, 05:39:04 PM »
Hey,

I get this error while starting the plugin:
Code: [Select]
151213 17:33:57	BOT    	'Loading Plugin #34 proxyfilter [/home/cod/b3/b3/extplugins/proxyfilter/conf/plugin_proxyfilter.ini]'
151213 17:33:57 INFO 'proxyfilter is not a built-in plugin (No module named proxyfilter)'
151213 17:33:57 INFO 'trying external plugin directory : /home/cod/b3/b3/extplugins'
151213 17:33:57 ERROR 'Error loading plugin proxyfilter'
Traceback (most recent call last):
  File "/home/cod/b3/b3/parser.py", line 673, in loadPlugins
    pluginModule = self.pluginImport(plugin_name, plugins[s]['path'])
  File "/home/cod/b3/b3/parser.py", line 759, in pluginImport
    return imp.load_module(name, fp, pathname, description)
  File "/home/cod/b3/b3/extplugins/proxyfilter/__init__.py", line 27, in <module>
    from b3.functions import getCmd
ImportError: cannot import name getCmd

Can somebody help?

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 984
    • GitHub
Re: ProxyFilter Plugin
« Reply #4 on: December 13, 2015, 05:43:34 PM »
This plugin does not work with B3 1.9. You need B3 1.10

Inviato dal mio Nexus 10 utilizzando Tapatalk


Offline Beyond

  • Jr. Member
  • **
  • Posts: 14
Re: ProxyFilter Plugin
« Reply #5 on: December 13, 2015, 05:53:50 PM »
Too bad, thx.

 


Rate this page +1 at Google Search