instance method
raise_spoofing_error
Ruby on Rails 8.1.4.1
Since v8.1.4.1 Private — implementation detail, not part of the public APIAvailable in: v8.1.4.1 edge
Signature
raise_spoofing_error()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 187
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 187
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::RemoteIp::GetIp