Resource icon

Limit bots 2.3.1

No permission to download

Xon

Well-known member
Xon submitted a new resource:

Limit bots - Limit bots in various ways

Stop bots from incrementing the various view counter.

Supported content types:
  • Threads
  • Attachments
Stops bots from saving their session.

Prevent bots from accessing the non-default 'order' argument for forums


Contributing features or bug fixes
Please create a Github Pull request via the "Find more info at github.com..." link.

Contributions

If you appreciate this addon, please consider a contribution via PayPal. Details will be provide via private...

Read more about this resource...
 

Xon

Well-known member
This add-on replaces 'session.public' in app_setup to allow XF\Session\Session to be extendable via the class extension system.

As of XenForo 2.0 RC2, this is not extendable
 
D

Deleted member 134868

Guest
Broken with XenForo 2.0.2.

Code:
Callback SV\LimitBots\Listener::appSetup is invalid (error_invalid_class).
 

Xon

Well-known member
This add-on prevents them from counting to view counts, it doesn't prevent the session activity record from being created.
 

Tracy Perry

Well-known member
When I have this add-on enabled on my site I end up with the following:

Code:
InvalidArgumentException: Accessed unknown getter 'like_count' on XF:User[2] src/XF/Mvc/Entity/Entity.php:194
Generated by: Tracy Perry January 31, 2019 at 3:13 PM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(101): XF\Mvc\Entity\Entity->get('like_count')
#1 src/addons/SV/LimitBots/XF/Session/Session.php(44): XF\Mvc\Entity\Entity->__get('like_count')
#2 src/addons/SV/LimitBots/XF/Repository/Thread.php(11): SV\LimitBots\XF\Session\Session->isRobot()
#3 src/XF/Pub/Controller/Thread.php(90): SV\LimitBots\XF\Repository\Thread->logThreadView(Object(XF\Entity\Thread))
#4 src/addons/XFMG/XF/Pub/Controller/Thread.php(11): XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#5 src/addons/SV/AlertImprovements/XF/Pub/Controller/Thread.php(19): XFMG\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(321): SV\AlertImprovements\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Index', Object(XF\Mvc\RouteMatch), Object(SV\AlertImprovements\XF\Pub\Controller\Thread), NULL)
#8 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\AlertImprovements\XF\Pub\Controller\Thread), NULL)
#9 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#11 src/XF.php(390): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
Request state
array(4) {
  ["url"] => string(46) "/threads/meet-vega-the-jewel-of-the-lyre.2291/"
  ["referrer"] => string(42) "https://astrowhat.com/forums/rss-feeds.25/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Once I disable the add-on I get no more errors. I am running 2.1 stable.
 

sbj

Well-known member
201237

The first one checked, does it mean that counting views for normal registered users will not be counted?

If unchecked, does it mean this addon's purpose to not count views for bots, will not be applied?
 

Xon

Well-known member
The first one checked, does it mean that counting views for normal registered users will not be counted?
Correct.

If unchecked, does it mean this addon's purpose to not count views for bots, will not be applied?
A guest may not be a robot, if this is enabled it just outright skips counting all guest views even if XF hasn't identified them as a robot.
 

sbj

Well-known member
@Xon

Sorry, I am confused.

How can I enable this only:
Stop bots from incrementing the various view counter.

But I also want that the views of guests (not bots) get counted, as well as for normal registered users who have 0 posts or likes.

Is this possible?
 
Top