Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
nuxt-throttle-module
Advanced tools
This module is designed to limit the number of requests made to the server from a single IP address and and the total number of participants
This module is designed to limit the number of requests made to the server from a single IP address and and the total number of participants for nuxt 2 and nuxt 3. It defines a Nuxt module that can be used in a Nuxt application.
The module requires Redis to work. See ENV for more information.
nuxt-throttle-module
dependency to your project# Using pnpm
pnpm add -D nuxt-throttle-module
# Using yarn
yarn add --dev nuxt-throttle-module
# Using npm
npm install --save-dev nuxt-throttle-module
nuxt-throttle-module
to the modules
section of nuxt.config.ts
nuxt 3
export default defineNuxtConfig({
modules: [
'nuxt-throttle-module'
],
throttleModule: {
ipMaxCount: 200,
minuteMaxCount: 2000,
secondMaxCount: 20,
}
})
nuxt 2
export default {
modules: [
'nuxt-throttle-module'
],
throttleModule: {
ipMaxCount: 200,
minuteMaxCount: 2000,
secondMaxCount: 20,
}
}
That's it! You can now use My Module in your Nuxt app ✨
The module accepts configuration options in the form of a TypeScript interface ModuleOptions. These options include:
ipMaxCount
- the maximum number of requests that can be made from a single IP addressminuteMaxCount
- the maximum number of requests that can be made in a minutesecondMaxCount
- the maximum number of requests that can be made in a secondprefix
- redis prefixtime
- time for clean redis
These options can be overridden when initializing the module.FAQs
This module is designed to limit the number of requests made to the server from a single IP address and and the total number of participants
The npm package nuxt-throttle-module receives a total of 4 weekly downloads. As such, nuxt-throttle-module popularity was classified as not popular.
We found that nuxt-throttle-module demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.