Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add rate limiting to prevent API spam 🚦

Đang mở
#149 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Top-Joe3 đang làm issue này rồi.

Từ ngày 8/8/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

good first issue

Add rate limiting to prevent API spam 🚦

File: server/index.js

Rn anyone can send 10000 requests per second
to the backend and crash it fr fr 💀
Not it bestie!!

Fix: install express-rate-limit (tiny package):
npm install express-rate-limit

Add to server/index.js:
const rateLimit = require('express-rate-limit')

const limiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 mins
max: 100 // max 100 requests per IP
})

app.use(limiter)

~5 lines, makes the app actually production ready 🔥
No frontend changes needed!!

Ngôn ngữ chính
JavaScript
Star
39
Fork
105
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
32

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của anoopcodehack/DevBoard

Tất cả issue của anoopcodehack/DevBoard

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.