Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setenvif question



Dan Shoop wrote:

At 7:02 PM -0500 2/21/05, Robert Dell wrote:

Ok, I THINK I have this right on the httpd.conf apache 1.33 file.

if the user agent is AOL's proxy server then it sets aol
if the request type is HEAD then head is set
if head and aol is set then blockaolproxy is set

SetEnvIf User-Agent ".*AOL.*" aol
SetEnvIf Request-Type ".*HEAD.*" head
SetEnvIf env=head & env=aol blockaolproxy

I'm not sure if I need parentheses on number 3


Either way I doubt it's valid. SetEnvIf takes a perl style regex, not a conditional.

will the above do what i THINK it will do?


I'm sorry, I can't read minds. What are you expecting it to do? How do you expect this to be useful?

WHat you expect it to do and be useful for might be wildly different than what I understand it to do.

before you start in on your "http user agent is not required http field and also can be spoofed", I know and the machines I want to block identify themselves as AOL (User Agent --> "Mozilla/4.0 (compatible; MSIE 6.0; AOL 9.0; Windows NT 5.0)")

so, I want to block access to those that identify themselves with AOL in the user agent field AND send a head request, that's all.  AOL keeps sending 20-30 head requests per second every 2-3 hours from their proxy server (always different servers) for the same GIF image in my site that there's no link on my site to.  They don't even request robots.txt to see if they are allowed.
You see what I want to do? I want only AOL to get 401 errors when they access my site and then only when they head my files.
It wouldn't be as bad if they were doing a head on a HTML file, then the server issues data and there MAY be a reason of some kind.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >setenvif question (From: Robert Dell <email@hidden>)
 >Re: setenvif question (From: Dan Shoop <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.