Public sign calculator and the twelve sign pages, SEO basics
/aszcendens-kalkulator: Sun, Moon and Ascendant signs from birth data
without an account. A calculation only (no AI, nothing saved), limited to
30 calculations and 300 place searches an hour per visitor address
(POST /v1/public/signs, GET /v1/public/geo/*). Without a birth time there
is no Ascendant, and signs near a border are marked uncertain.
/csillagjegyek and /csillagjegyek/{jegy}: the twelve signs with facts,
Sun, Moon and Ascendant, love, work, a common misbelief and an offer,
each written on its own. Links to the calculator and sign-up.
SEO: metadataBase and canonical addresses, hreflang between the
Hungarian and English privacy pages, Organization and WebSite JSON-LD on
the home page, FAQPage on the calculator, BreadcrumbList on the sign
pages; the sitemap lists the new pages, the footers link them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -186,7 +186,8 @@ pub static DUMMY_HASH: std::sync::LazyLock<String> = std::sync::LazyLock::new(||
|
||||
// --- brute-force protection ----------------------------------------------------------
|
||||
|
||||
/// Counts failed logins per e-mail address in a sliding window (in memory,
|
||||
/// per backend instance).
|
||||
/// per backend instance). Also counts the calls of public endpoints per
|
||||
/// address ([`LoginLimiter::hit`]).
|
||||
pub struct LoginLimiter {
|
||||
max_failures: u32,
|
||||
window: Duration,
|
||||
@@ -222,6 +223,14 @@ impl LoginLimiter {
|
||||
entry.0 += 1;
|
||||
}
|
||||
|
||||
/// Counts one use of a public endpoint (every call, not just failures):
|
||||
/// 429 once `max_failures` calls were made in the window.
|
||||
pub fn hit(&self, key: &str) -> Result<(), ApiError> {
|
||||
self.check(key)?;
|
||||
self.failed(key);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn succeeded(&self, key: &str) {
|
||||
self.failures.lock().expect("limiter lock").remove(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user