Block Image Request | Community
Skip to main content
Level 3
October 16, 2015
Solved

Block Image Request

  • October 16, 2015
  • 1 reply
  • 1160 views

We have a 3rd party security scanner tool that crawls our site.  They are filtered out of our data set using our bot rules.  However, we are still billed for all of the server calls even though the traffic is flagged as a bot.  Is there anyway to turn off the image request so we will not be billed for the server calls it generates? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by bbythewa

Hi Eric,

You would have to write some custom code in your s_code file that aborts the request.

You would also need to access some flag from javascript that distinguishes the scanner from a real visitor.  I'm not sure if you can configure your scanner tool to set any cookies or make any data available to the javascript context.  If you can, then it would work like this:

Probably in doPlugins, you would write some condition:

if (/* cookie is set, or javascript that distinguishes your scanner is true */) { s.abort = true; }

Thanks,

Ben

1 reply

bbythewaAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi Eric,

You would have to write some custom code in your s_code file that aborts the request.

You would also need to access some flag from javascript that distinguishes the scanner from a real visitor.  I'm not sure if you can configure your scanner tool to set any cookies or make any data available to the javascript context.  If you can, then it would work like this:

Probably in doPlugins, you would write some condition:

if (/* cookie is set, or javascript that distinguishes your scanner is true */) { s.abort = true; }

Thanks,

Ben