auth-centric-firewall 0.0.5 → 0.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be8d5d6f21ba348774f410c2c66a80a516e7833b84eb68159fd62724948686be
4
- data.tar.gz: 5e13eb109177a7981bf116b5bbc59a4dabfc681bdbdf091d26cfb497a358b83f
3
+ metadata.gz: 5b9400abeb47ed8c8bf280ba09f8f8a5f8fa4a95fbf28ed0197709ae3bc77f41
4
+ data.tar.gz: 7bd5484e78cdd517f79de8eb8772c5ea0d7a136f439b5adb689bd2be0ac25d6c
5
5
  SHA512:
6
- metadata.gz: 85c407c6539d89c1d3bb9144225a761c9e76ae63e3c1ee424f2fbcf1548c376ed1ae77f15f13435e18e1d5d47cf12ab4b11960e99c34394eb6bcf18220b7d827
7
- data.tar.gz: bad9f9f488115111ad70b46231b7e8b1b843cf378e9b429be1f9372b6b0f461cac382f33b7f3df8e6c0ea58e6b8ff86964f237b2d7709ea117934bb4cb859443
6
+ metadata.gz: d44130ea3e21c21ab8e29637f72534a1142f912fe40aa3726c7a1c7cc7beccdedded5f15cd2a5e46c92256a51f0c653e7fe8c0ac2d37b98cbfa9ff7ac529e8ca
7
+ data.tar.gz: 4f46cd0a3c71e0b1dda02479ed190c90e1c3907ac652b0ef45074b23954e25788c69ab8372d7f6f3c3bf01182cc33cf27717bff380f0682ac853aafdb225c616
@@ -3,7 +3,7 @@
3
3
  module Auth
4
4
  module Centric
5
5
  module Firewall
6
- VERSION = '0.0.5'
6
+ VERSION = '0.0.7'
7
7
  end
8
8
  end
9
9
  end
@@ -32,7 +32,8 @@ module Auth
32
32
  true
33
33
  end
34
34
 
35
- def valid_ip?(ip_address)
35
+ def valid_ip?(request)
36
+ ip_address = request.env['HTTP_X_FORWARDED_FOR'] || request.remote_ip
36
37
  return true if IGNORE_IP.include?(ip_address)
37
38
 
38
39
  http = HTTP
data/public/403.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <body class="rails-default-error-page">
9
9
  <div class="dialog">
10
10
  <div>
11
- <h1>Your connection was rejected.</h1>
11
+ <h1>Your connection was blocked.</h1>
12
12
  <p>A.I. firewall has flagged your connection as hostile.</p>
13
13
  <p>You will not be able to connect to our services.</p>
14
14
  </div>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth-centric-firewall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saimon Lovell
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-22 00:00:00.000000000 Z
10
+ date: 2025-03-29 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: http