Class Rack::Protection::Base
In: lib/rack/protection/base.rb
Parent: Object

Methods

Constants

DEFAULT_OPTIONS = { :reaction => :default_reaction, :logging => true, :message => 'Forbidden', :encryptor => Digest::SHA1, :session_key => 'rack.session', :status => 403, :allow_empty_referrer => true, :report_key => "protection.failed", :html_types => %w[text/html application/xhtml]

Attributes

app  [R] 
options  [R] 

Public Class methods

Public Instance methods

default_reaction(env)

Alias for deny

The implementations of secure_compare and bytesize are taken from Rack::Utils to be able to support rack older than XXXX.

[Validate]