I've spent some time on this. Every site going tells you how to use Filtering Rules but no one actually tells you how to really do it. I'm probably missing something but...
I'm trying to establish a server-wide rule to avoid having to add and maintain a common denial of access. Sites and general usage are Classic ASP but .NET is enabled (and required, I think, for general server setup).
Under the Server in the IIS manager I have opened the Request Filtering option. I then added a new Rule, named it and entered a Header under Scan Headers. I specifically entered HTTP_REFERER (tried variations with and without HTTP but no difference).
Under File Extensions I tried ASP and blank.
Under Deny Strings I entered: *example.com*
Restarted IIS.
The intention was to prevent bots with Referers containing example.com from accessing any of the sites on the server. I still get the accesses in the logs. I know the bots are loading web pages because other logs say so.
I accept I'm probably doing something wrong, but what?