You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _includes/rack-protection-readme.html
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -84,8 +84,11 @@ <h2>Session Hijacking</h2>
84
84
85
85
<h2>Cookie Tossing</h2>
86
86
87
-
<p>Prevented by:
88
-
* <ahref="http://www.sinatrarb.com/protection/cookie_tossing"><code>Rack::Protection::CookieTossing</code></a> (not included by <code>use Rack::Protection</code>)</p>
87
+
<p>Prevented by:</p>
88
+
89
+
<ul>
90
+
<li><ahref="http://www.sinatrarb.com/protection/cookie_tossing"><code>Rack::Protection::CookieTossing</code></a> (not included by <code>use Rack::Protection</code>)</li>
91
+
</ul>
89
92
90
93
<h2>IP Spoofing</h2>
91
94
@@ -112,9 +115,9 @@ <h1>Installation</h1>
112
115
<h1>Instrumentation</h1>
113
116
114
117
<p>Instrumentation is enabled by passing in an instrumenter as an option.
115
-
~~~~
116
-
use Rack::Protection, instrumenter: ActiveSupport::Notifications
117
-
~~~~</p>
118
118
119
-
<p>The instrumenter is passed a namespace (String) and environment (Hash). The namespace is ‘rack.protection’ and the attack type can be obtained from the environment key ‘rack.protection.attack’.</p>
119
+
<pre><code> use Rack::Protection, instrumenter: ActiveSupport::Notifications
120
+
</code></pre>
121
+
122
+
<p>The instrumenter is passed a namespace (String) and environment (Hash). The namespace is <code>rack.protection</code> and the attack type can be obtained from the environment key <code>rack.protection.attack</code>.</p>
0 commit comments