Forum Moderators: martinibuster
RewriteCond %{HTTP_REFERER} google\.co\.in
RewriteCond %{REQUEST_URI} (.+)
RewriteRule ^ebooks/\w+/(?:\w+\.html)?$ http://example.com/boilerplate/redirect.php?newpage=%1 [R=302,L]
where /redirect.php is a page that says Oops, I’m sorry, blahblah, et cetera with a link to the originally requested page--which is almost never followed-up. Note that here it has to be a 302, or the browser will send them around in circles. I started doing this after noticing that humans from (specifically) India were landing on pages that had nothing to do with what they were looking for, with the result that they placed an extra load on the server--pages in this directory tend to have lots and lots of images--and all for nothing. (We all have our own standards when it comes to access control. Mine includes “Read the ### search snippet, willya?”) I can’t work out if it’s bots or not.Insert boilerplate about consulting raw access logs. Analytics won't even tell you whether they're actually requesting the page, let alone the supporting files that would identify the visitor as human.