-
-
Save jimmyislive/5b0f4a239443a3cb95e4 to your computer and use it in GitHub Desktop.
Honeypot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="control-group"> | |
<label class="hidden" for="inputPot">Do not fill me in</label> | |
<div class="controls"> | |
<input class="hidden" type="text" id="inputPot" placeholder="pot" ng-model="session.packagePot" name="packagePot"> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (req.params.packagePot !== undefined) { | |
// 403 = HTTP forbidden | |
return res.json(403, 'Are you a bot?'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment