
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
securexpress
Advanced tools
Advanced Express middleware for encryption, performance, DDoS protection and anti-scraping.
SecureXpress adalah middleware all-in-one untuk Express.js yang menggabungkan keamanan, performa, dan kemudahan konfigurasi dalam satu paket. Fitur utama meliputi:
Ideal untuk API modern yang membutuhkan keamanan tinggi dan performa optimal.
npm install securexpress
const express = require('express');
const securexpress = require('securexpress');
const app = express();
app.use(express.text()); // Wajib jika enableEncryption: true
app.use(securexpress({
secretKey: '12345678901234567890123456789012' // Kunci AES-256 (32 karakter)
}));
app.post('/api', (req, res) => {
res.send({ message: 'Halo dunia terenkripsi!' });
});
app.listen(3000, () => console.log('Server berjalan di port 3000'));
Opsi | Tipe | Default | Deskripsi |
---|---|---|---|
secretKey | string | - | Kunci AES-256 (wajib, 32 karakter) |
enableEncryption | boolean | true | Aktifkan enkripsi/dekripsi otomatis |
enableDDoS | boolean | true | Proteksi rate-limiting terhadap DDoS |
enableScrapingGuard | boolean | true | Deteksi bot, scraping, dan header mencurigakan |
enablePerformanceBoost | boolean | true | Aktifkan kompresi dan header caching |
enableTrafficQueue | boolean | true | Antrekan request saat lonjakan trafik |
enableCDNAwareness | boolean | true | Tambahkan header X-Cache-Key untuk CDN |
enablePromoHeader | boolean | true | Tambahkan header X-Powered-By dan promosi package |
enableEncryption: false
:
express.json()
alih-alih express.text()
.Cache-Control: public, max-age=300
.X-Cache-Key
berbasis cookie, User-Agent, dan language.Default header:
X-Powered-By: securexpress
X-SecureXpress-Promo: Protect your API with https://www.npmjs.com/package/securexpress2
Nonaktifkan dengan enablePromoHeader: false
.
app.use(securexpress({
secretKey: '12345678901234567890123456789012',
enableEncryption: true,
enableDDoS: true,
enableScrapingGuard: true,
enablePerformanceBoost: true,
enableTrafficQueue: true,
enableCDNAwareness: true,
enablePromoHeader: true
}));
Dikembangkan oleh [KANGWIFI]
GitHub: @Yz776
Website: kangwifi
MIT © 2025
Jika menyukai proyek ini, silakan:
FAQs
Advanced Express middleware for encryption, performance, DDoS protection and anti-scraping.
The npm package securexpress receives a total of 1 weekly downloads. As such, securexpress popularity was classified as not popular.
We found that securexpress demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.