2014-07-25, 11:49 AM
Hello!
I am trying to implement Bot Blackhole.php to automatically ban some of my more distasteful automated visitors, and I am having some difficulty when it comes to including the necessary bot-check script at the top of pages.
I am trying to include something similar to this into root/global.php, but I am unfamiliar with MyBB and I am uncertain how to do this successfully; or if there is a more appropriate alternative for including the script on every page. Everything I have tried has shown either a blank white page, or an error indicating that it was unable to fetch the desired file (I did not use the snippet quoted directly above to do this... ;D ) If someone would point me in the direction of a more appropriate solution I would be grateful!
Thanks!
I am trying to implement Bot Blackhole.php to automatically ban some of my more distasteful automated visitors, and I am having some difficulty when it comes to including the necessary bot-check script at the top of pages.
<?php include($_SERVER['DOCUMENT_ROOT'] . "/blackhole/blackhole.php"); ?>
I am trying to include something similar to this into root/global.php, but I am unfamiliar with MyBB and I am uncertain how to do this successfully; or if there is a more appropriate alternative for including the script on every page. Everything I have tried has shown either a blank white page, or an error indicating that it was unable to fetch the desired file (I did not use the snippet quoted directly above to do this... ;D ) If someone would point me in the direction of a more appropriate solution I would be grateful!
Thanks!