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
|
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 interceptData], [any buffer])
Limiter. |
Methods inherited from class coldbox.system.Interceptor |
---|
appendToBuffer, clearBuffer, getBufferObject, getBufferString, getCachebox, getFlash, getInterceptorService, getLog, getLogBox, getProperties, getProperty, getWirebox, init, propertyExists, setCachebox, setFlash, setInterceptorService, setLog, setLogBox, setProperties, setProperty, setWirebox, unregister |
Methods inherited from class coldbox.system.FrameworkSupertype |
---|
addAsset, announceInterception, getCache, getController, getInstance, getInterceptor, getModel, getModuleConfig, getModuleSettings, getMyPlugin, getPlugin, getRenderer, getRequestCollection, getRequestContext, getSetting, getSettingStructure, includeUDF, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderLayout, renderView, runEvent, setController, setNextEvent, setSetting, settingExists |
Methods inherited from class lucee.Component |
---|
None |
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- id:settingService@cbserializable
- 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
interceptData
buffer