instance method raise_spoofing_error

Ruby on Rails edge

Since v8.1.4.1 Private — implementation detail, not part of the public API

Available in: v8.1.4.1 edge

Signature

raise_spoofing_error()

No documentation comment.

Source
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 186
      def raise_spoofing_error
        message = +"IP spoofing attack?! " \
          "HTTP_CLIENT_IP=#{@req.client_ip.inspect} " \
          "HTTP_X_FORWARDED_FOR=#{@req.x_forwarded_for.inspect}"
        if forwarded = @req.get_header("HTTP_FORWARDED")
          message << " HTTP_FORWARDED=#{forwarded.inspect}"
        end
        raise IpSpoofAttackError, message
      end

Defined in actionpack/lib/action_dispatch/middleware/remote_ip.rb line 186 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::RemoteIp::GetIp

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close