httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Moe <>
Subject [users@httpd] Blocking particular URL/file patterns
Date Tue, 02 Jul 2019 20:16:22 GMT
apache 2.4.39
linux 4.12.14-lp151.28.7-default x86_64

Our site has beset with numerous search engine queries for URLs that
have *never* existed on the site. They have the form:


where the digits are randomly changed. The search bots of Google and
Bing are the most prevalent producing 1000s of 404s per day. Not a
particular CPU burden, to be sure. Annoying nevertheless.

The following blocks the bots but also legitimate requests as well.
deny from    googlebot
deny from    bingbot
deny from
deny from

Is there a way to write a filter that blocks the above URL patterns
without generating a 404 response?

James Moe
moe dot james at sohnen-moe dot com

View raw message