Improve honeypot link

This commit is contained in:
Alex Cabal 2025-01-27 10:49:15 -06:00
parent 4eb45bd54b
commit b48f3a5798
3 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,6 @@
[se]
enabled = false
enabled = true
filter = se
port = http,https
bantime = 24h

View file

@ -120,7 +120,7 @@ if(!$isXslt){
<? } ?>
<a href="/">Standard Ebooks</a>
<? /* This link is hidden to regular users, and also disallowed by `robots.txt`. If a rude bot crawls this URL, `fail2ban` bans the IP for 24 hours. See `./config/fail2ban/filter.d/se.conf`. */ ?>
<a href="/honeypot" hidden="hidden">Following this link will ban your IP for 24 hours</a>
<a href="/honeypot" hidden="hidden" class="honeypot" rel="nofollow">Following this link will ban your IP for 24 hours</a>
<nav>
<ul>
<li>

View file

@ -609,11 +609,13 @@ main.front-page > section > section > h3{
hyphens: none;
}
header a[href="/honeypot"]{
.honeypot{
/* Hide from clients who don't support the `@hidden` attribute, like older Kindle browsers. */
/* Select using a class for older renderers like Kindle in-browser renderer. */
display: none;
position: absolute;
left: -9999rem;
font-size: 0;
}
main.center h1{