🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 6 Min Lesezeit
0

Implement reCAPTCHA in htmx + expressjs

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

Let's start with the most obvious question, why we need it? because reCAPTCHA is using advance risk analysis techniques to detect frau, thus protecting your websites or mobile app from fraudulent activities and security risks such as:




  • Spam.

  • Abuse.

  • Credential stuffing1.

  • Account takeover (ATO).

  • Automated account creation.

  • Password breach.

  • Leak detection.



Here we wana use Google's reCAPTCHA which I believe is the most popular out there:




  • It has:


    • Mobile app SDKs.

    • Multi-factor authentication (MFA).






  • It interacts with your:


    • Backend.

    • Clients (web pages or mobile applications).














UX -- User journey



So here is how our users probably use our app, well you know how things usually end:





Credits for this image goes to google doc.







In which layers we can add reCAPTCHA?




  • In our websites.

  • In mobile apps.

  • Or in the and made the most beautiful UI.




    Important:



    The most important part is where I added a hidden input. That's how I am sending the token I got from Google reCAPTCHA service to my backend.





  • I wrote all the logics that I were not able to implement in htmx in what they call it hypermedia friendly in a separate JS file called ).



  • hx-sync which looked it might be able to help me in one way or another but the more I looked at it the more I realized that it was not up to the task. You can have more complex logic in it but it won't wait until it is resolved and then make the forms request (.




  • Told htmx to send the req: event.detail.issueRequest.









  • Add reCAPTCHA to which stands for Application Default Credentials. And here I decided to use API keys. But you can definitely go with what suits you're requirements most.



    On a side note, not every API can be called with API keys. But we know for sure that create assessment can be called based on what is written .





    1. Creating a client -- new RecaptchaEnterpriseServiceClient().

    2. Constructing our request -- projectPath, and request variables.

    3. Sending the req to get a score for the user action -- client.createAssessment.

    4. Performing some verifications before returning the score -- isTokenValid, isTheExpectedAction, and isNumeric.


    5. Lastly we are closing the open connection we've created just a few steps ago (step #1).




      Note:



      Please read the JSDoc I wrote for the client


    6. Facebook:

    7. YouTube:

    8. Dev.to: https://dev.to/kasir-barati









  1. Credential stuffing: when the attacker collects stolen account credentials. ↩





  2. Verdict: An opinion/decision made after judging the facts that are given. ↩




Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Hackers Just Poisoned the Rust Supply Chain | Threat Wire
1 Quelle
Hackers Found a Way Into Humanoid Robots | Threat Wire
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Implement reCAPTCHA in htmx + expressjs

Thematisch verwandte Begriffe: Implement, reCAPTCHA, htmx, expressjs · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...