Module: HttpDefender::Deflect
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/http_defender.rb
Constant Summary collapse
- BLOCKED_HTTP_ENVS =
%w(torrent proxyunlocked)
Instance Method Summary collapse
Instance Method Details
#deflect_domains ⇒ Object
11 12 13 14 15 16 |
# File 'lib/http_defender.rb', line 11 def deflect_domains BLOCKED_HTTP_ENVS.each do |bhe| next unless request.env['HTTP_HOST'].include?(bhe) head :no_content end end |