detrusion 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/README.rdoc +29 -1
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/detrusion.gemspec +58 -0
  5. metadata +4 -3
data/README.rdoc CHANGED
@@ -1,8 +1,36 @@
1
1
  = detrusion
2
2
 
3
3
  Detrusion automatically detects XSS and JavaScript Injection attempts and blocks the attacker's IP address.
4
- It works together with the management interface on http://detrusion.com/
4
+ It works together with the management interface on http://detrusion.com
5
5
 
6
+ == Installation
7
+
8
+ 1) Install the gem:
9
+ gem install detrusion
10
+
11
+ Rails 3: include detrusion in your Gemfile
12
+ gem 'detrusion'
13
+
14
+ Rails 2: include the gem in config/environment.rb
15
+ config.gem "detrusion"
16
+
17
+
18
+ 2) Include the detrusion module in your application controller (app/controllers/application_controller.rb)
19
+ and insert the before_filter:
20
+
21
+ include Detrusion
22
+ before_filter :detrusion_check
23
+
24
+ 3) Go to http://detrusion.com and create an account. You'll manage your black-/ whitelists and firewall settings there.
25
+
26
+ 4) Paste the configuration as explained in config/environments/production.rb:
27
+
28
+ DETRUSION_CONFIG = {
29
+ :user => 'your-username',
30
+ :api => 'your-secret-api-key'
31
+ }
32
+
33
+ That's it. Your application will detect XSS and SQL Injection attempts and block the attacker's IP.
6
34
 
7
35
  == Copyright
8
36
 
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
15
15
  Jeweler::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "detrusion"
18
- gem.homepage = "http://github.com/symontech/detrusion"
18
+ gem.homepage = "http://detrusion.com"
19
19
  gem.license = "MIT"
20
20
  gem.summary = "web application firewall for rails applications"
21
21
  gem.description = "detrusion detects and prevents attacks on your web applications and blocks malicious users"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/detrusion.gemspec ADDED
@@ -0,0 +1,58 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{detrusion}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Simon Wepfer"]
12
+ s.date = %q{2011-07-01}
13
+ s.description = %q{detrusion detects and prevents attacks on your web applications and blocks malicious users}
14
+ s.email = %q{info@detrusion.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "LICENSE.txt",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "detrusion.gemspec",
27
+ "lib/detrusion.rb",
28
+ "test/helper.rb",
29
+ "test/test_detrusion.rb"
30
+ ]
31
+ s.homepage = %q{http://detrusion.com}
32
+ s.licenses = ["MIT"]
33
+ s.require_paths = ["lib"]
34
+ s.rubygems_version = %q{1.5.0}
35
+ s.summary = %q{web application firewall for rails applications}
36
+
37
+ if s.respond_to? :specification_version then
38
+ s.specification_version = 3
39
+
40
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
42
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
43
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
44
+ s.add_development_dependency(%q<rcov>, [">= 0"])
45
+ else
46
+ s.add_dependency(%q<shoulda>, [">= 0"])
47
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
48
+ s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
49
+ s.add_dependency(%q<rcov>, [">= 0"])
50
+ end
51
+ else
52
+ s.add_dependency(%q<shoulda>, [">= 0"])
53
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
54
+ s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
55
+ s.add_dependency(%q<rcov>, [">= 0"])
56
+ end
57
+ end
58
+
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: detrusion
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Simon Wepfer
@@ -73,11 +73,12 @@ files:
73
73
  - README.rdoc
74
74
  - Rakefile
75
75
  - VERSION
76
+ - detrusion.gemspec
76
77
  - lib/detrusion.rb
77
78
  - test/helper.rb
78
79
  - test/test_detrusion.rb
79
80
  has_rdoc: true
80
- homepage: http://github.com/symontech/detrusion
81
+ homepage: http://detrusion.com
81
82
  licenses:
82
83
  - MIT
83
84
  post_install_message:
@@ -90,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
91
  requirements:
91
92
  - - ">="
92
93
  - !ruby/object:Gem::Version
93
- hash: 4603383419822872077
94
+ hash: 3702681139808075433
94
95
  segments:
95
96
  - 0
96
97
  version: "0"