Checksum Algorithms: Importance of Security and Common Vulnerabilities

Checksum algorithms are used to detect errors in data transmission and storage. In this article, we will explore the importance of security in checksum algorithms and some common security vulnerabilities.

December 9, 2024 · 7 min · 1359 words · Bá Tới

Implement Rate Limiting in Ruby on Rails

Rate limiting is a common technique used to control the rate of incoming requests to a web application and prevent abuse or overload. Learn how to implement rate limiting in a Ruby on Rails application using middleware and Redis.

May 2, 2024 · 8 min · 1684 words · Bá Tới

What are HSTS and the HSTS preload list?

The HSTS (HTTP Strict Transport Security) protocol is a policy / mechanism that forces a web connection over a secure HTTPS channel. In other words: without a valid SSL certificate, such a website will not load in your browser. The browser will not even show the option to ignore the SSL warning.

March 26, 2024 · 3 min · 438 words · Bá Tới

Understanding CSRF in Ruby on Rails

CSRF (Cross-Site Request Forgery) is a type of attack where an attacker tricks a user into performing unintended actions on a web application in which the user is authenticated. This article explains what CSRF is, how Rails’ authenticity tokens, Origin check and SameSite cookies protect against it, and when it is safe to skip the check.

January 7, 2020 · Updated October 29, 2026 · 5 min · 1030 words · Bá Tới

Prevent Content Type Spoofing on Paperclip

If you have ever used paperclip, maybe you have seen the message like that: Image has contents that are not what they are reported to be. For this bug, we will have two solutions: specify an extension that cannot otherwise be mapped or override media_type_spoof_detector method.

October 3, 2016 · Updated October 29, 2026 · 2 min · 265 words · Bá Tới