mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
Improve honeypot link
This commit is contained in:
parent
4eb45bd54b
commit
b48f3a5798
3 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
[se]
|
||||
|
||||
enabled = false
|
||||
enabled = true
|
||||
filter = se
|
||||
port = http,https
|
||||
bantime = 24h
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue