Module: HotlinkInterceptor

Extended by:
ActiveSupport::Concern
Included in:
Projects::RepositoriesController
Defined in:
app/controllers/concerns/hotlink_interceptor.rb

Instance Method Summary collapse

Instance Method Details

#intercept_hotlinking!Object


6
7
8
# File 'app/controllers/concerns/hotlink_interceptor.rb', line 6

def intercept_hotlinking!
  return render_406 if Gitlab::HotlinkingDetector.intercept_hotlinking?(request)
end