Skip to content

Commit

Permalink
Add Rack::Protection.
Browse files Browse the repository at this point in the history
  • Loading branch information
soveran committed Mar 31, 2012
1 parent 57e41f3 commit 2408893
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gems
@@ -1,9 +1,11 @@
capybara -v 1.1.2
cuba -v 3.0.0
cuba-contrib -v 3.0.0
cutest -v 1.1.3
mote -v 0.2.2
rake -v 0.9.2.2
shield -v 0.1.0
pbkdf2 -v 0.1.0
malone -v 1.0.0.rc1
cuba -v 3.0.0
rack-protection -v 1.2.0
scrivener -v 0.0.3
3 changes: 3 additions & 0 deletions app.rb
Expand Up @@ -14,6 +14,9 @@
root: "public",
urls: ["/js", "/css", "/less", "/img"]

Cuba.use Rack::Protection
Cuba.use Rack::Protection::RemoteReferrer

# We use the more secure PBKDF2 password strategy (iterations = 5000)
Shield::Password.strategy = Shield::Password::PBKDF2

Expand Down
1 change: 1 addition & 0 deletions shotgun.rb
Expand Up @@ -7,3 +7,4 @@
require "ohm"
require "pbkdf2"
require "shield"
require "rack/protection"

0 comments on commit 2408893

Please sign in to comment.