intrusion 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +9 -3
- data/Rakefile +1 -1
- data/intrusion.gemspec +1 -1
- data/lib/intrusion.rb +0 -2
- data.tar.gz.sig +2 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
data/README.rdoc
CHANGED
@@ -2,10 +2,16 @@
|
|
2
2
|
|
3
3
|
Intrusion is a gem helping you to detect and prevent intrusion attempts within your ruby on rails application.
|
4
4
|
|
5
|
-
==
|
6
|
-
|
5
|
+
== Installation
|
6
|
+
Install the gem:
|
7
|
+
gem install intrusion
|
8
|
+
|
9
|
+
Rails 3: include intrusion in your Gemfile
|
7
10
|
gem 'intrusion'
|
8
11
|
|
12
|
+
Rails 2: include the gem in config/environment.rb
|
13
|
+
config.gem "intrusion"
|
14
|
+
|
9
15
|
create a 'ids' attribute for the ActiveRecord model you want to protect and migrate, e.g:
|
10
16
|
|
11
17
|
# rails generate migration add_ids_to_accounts ids:string
|
@@ -20,7 +26,7 @@ include Intrusion in your model:
|
|
20
26
|
== Examples:
|
21
27
|
|
22
28
|
=== Check if IP adress is blocked
|
23
|
-
return "your ip is blocked" if Account.find(1).
|
29
|
+
return "your ip is blocked" if Account.find(1).ids_is_blocked?(request.remote_addr)
|
24
30
|
|
25
31
|
|
26
32
|
=== Report suspicious activity
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('intrusion', '0.1.
|
5
|
+
Echoe.new('intrusion', '0.1.1') do |p|
|
6
6
|
p.description = "intrusion detection and prevention for rails apps"
|
7
7
|
p.url = "http://github.com/symontech/intrusion"
|
8
8
|
p.author = "Simon Wepfer"
|
data/intrusion.gemspec
CHANGED
data/lib/intrusion.rb
CHANGED
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
�����![-�&�� V��ok���f��Ӂ�����<g�®u(HQ��\s��>} 0���*���nl
|
2
|
+
���_�JtH ���hw�z�n��j����r�ʚ�J��XD��2�T�RT���T�)�thW��@�A�Cm�(�E������(�(}�����ƵR�+���e��l��Z��"7��!���s{���9��^��mx�WS�L9�Ԅ�qg�:T�D��t斎��~��-���vCq�9��
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|