• Hello,
    I have this code i would like to put on my website. The website says to put it on the top of pages.
    Here is the website: https://perishablepress.com/blackhole-bad-bots/
    Here is the code: <?php include($_SERVER['DOCUMENT_ROOT'] . "/blackhole/blackhole.php"); ?>
    I have uploaded the unzipped folder to my Home directory. Placed the code in header.php only to get this very long error.
    EDIT: I have set Executable permissions for User, Group, and World.
    ERROR: Warning: include(/home2/ytadvise/public_html/blackhole/blackhole.php): failed to open stream: No such file or directory in /home2/ytadvise/public_html/wp-content/themes/wpex-thoughts/header.php on line 13

    Warning: include(): Failed opening ‘/home2/ytadvise/public_html/blackhole/blackhole.php’ for inclusion (include_path=’.:/opt/php54/lib/php’) in /home2/ytadvise/public_html/wp-content/themes/wpex-thoughts/header.php on line 13

    Thanks for the help,
    Alex

    Link to site: https://ytadvisers.com

  • The topic ‘Including this code for a bot trap’ is closed to new replies.