Skip to content

A Rust app that generates a captcha and saves a signed token in a cookie which is used to verify the captcha when it is resolved. It's completely stateless and runs entirely on Fastly's Compute serverless platform

License

Notifications You must be signed in to change notification settings

fastly/CaptchaOnEdge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Rust app that generates a captcha and saves a signed token in a cookie which is used to verify the CAPTCHA when it is resolved. If you enter a wrong string and submit, you will be presented with a new captcha string to solve. Once you solve the CAPTCHA string and if it verifies accurately the screen will refresh after 4s.

When you initially load the https://captcha-demo.edgecompute.app/ app, it loads an HTML+Javascript web app that are statically loaded from the RUST app into your client. The client app makes calls to various endpoints in the RUST app https://captcha-demo.edgecompute.app/ from within and these endpoints each have a route within the Rust app that serves the request without the overhead of maintaining an origin server.

About

A Rust app that generates a captcha and saves a signed token in a cookie which is used to verify the captcha when it is resolved. It's completely stateless and runs entirely on Fastly's Compute serverless platform

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages

  • Rust 65.5%
  • JavaScript 15.6%
  • HTML 11.7%
  • CSS 7.2%