lucee.Componentcoldbox.system.FrameworkSupertype
coldbox.system.Interceptor
contentbox.models.security.RateLimiter
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Limits and prevents DOS attacks
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
securityService
|
true
|
false
|
|
any
|
settingService
|
true
|
false
|
Method Summary | |
---|---|
any
|
configure()
Configure. |
private any
|
limiter([any count], [any duration], [any event], [any settings])
Written by Charlie Arehart, charlie@carehart. |
any
|
onRequestCapture([any event], [any data], [any buffer])
Limiter. |
Methods inherited from class coldbox.system.Interceptor |
---|
cbLoadInterceptorHelpers, getProperties, getProperty, init, propertyExists, setProperties, setProperty, unregister |
Methods inherited from class coldbox.system.FrameworkSupertype |
---|
announce, announceInterception, async, back, externalView, forAttribute, getCache, getCachebox, getColdBoxSetting, getController, getDateTimeHelper, getEnv, getFlash, getFlow, getInstance, getIsoTime, getJsonUtil, getLog, getLogBox, getModuleConfig, getModuleSettings, getRenderer, getRequestCollection, getRequestContext, getRootWireBox, getSetting, getSystemProperty, getSystemSetting, getUserSessionIdentifier, getWirebox, ifNull, ifPresent, inDebugMode, includeUDF, isDevelopment, isProduction, isTesting, layout, listen, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populate, populateModel, relocate, renderExternalView, renderLayout, renderview, runEvent, runRoute, setCachebox, setController, setEnv, setFlash, setFlow, setJsonUtil, setLog, setLogBox, setSetting, setWirebox, settingExists, throwIf, throwUnless, toJson, unless, view, when |
Methods inherited from class lucee.Component |
---|
None |
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- id:securityService@contentboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:settingService@contentboxserializable
- trueMethod Detail |
---|
Configure
configure
in class
coldbox.system.Interceptor
Written by Charlie Arehart, charlie@carehart.org, in 2009, updated 2012, modified by Luis Majano 2016 - Throttles requests made more than "count" times within "duration" seconds from single IP. - Duck typed for performance
count
- The throttle counterduration
- The time in seconds to limitevent
- The request context objectsettings
- The settings structureLimiter
event
data
buffer