I'm looking to add the code found at this site:
https://perishablepress.com/blackhole-bad-bots/
Here's the steps I need help with:
In step 3, do I include this line in the Page Template of the PPv3 responsive skin I'm using, and if so, in what section?Step 3: Include the bot-check script by adding the following line to the top of your pages:
<?php include($_SERVER['DOCUMENT_ROOT'] . "/blackhole/blackhole.php"); ?>
The blackhole.php script checks the request IP against the blacklist data file. If a match is found, the request is blocked with a customizable message. See the source code for more information.
Step 4: Include a hidden link to the /blackhole/ directory in the footer of your pages:
<a style="display:none;" href="http://example.com/blackhole/" rel="nofollow">Do NOT follow this link or you will be banned from the site!</a>
This is the hidden link that bad bots will follow. It’s currently hidden with CSS, so 99% of visitors won’t ever see it. To hide the link from users without CSS, replace the anchor text with a transparent 1-pixel GIF image.
My best guess is between line 173 and 174 in the defaultPageTemplate.html in the skin, but I'm too chicken to try it without some confirmation.
In step 4, I think I edit the _topicfooter.html file in the Baggage Files section of the skin, according to the help file. Could this be confirmed?
Thanks,
Paul