Forum Moderators: phranque
So in short I want to NEVER satisfy ANY request from a blank useragent.
jdMorgan final response seems to be what you want - isn't it working for you?
[Fri Sep 23 04:22:53 2005] [error] [client 127.0.0.1] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: C:/../htdocs/error/error-403.html
Now the problem is that while a direct request (go button) is sent a 403 message if you click links from page to page you can still browse normally...which is what I'm concerned about, I don't want ANY requests (direct or not) to be allowed with a blank UA.
I am seeing 304s in the logs...so I am assuming that caches of files are somehow allowing access to the files? (If that is the case then how would I block cacheing, which files (and in general a directory but a directory but without applying to files in) would I have to set to not cache?)
I'm a bit confused here...
I keep updating this post (now I have to post a reply, eh)...though I think I've pinpointed it as good as I possibly can.
That says it all, really.
Add Options +FollowSymLinks ahead of RewriteEngine on in your code.
You seem to be having an inordinate amount of trouble getting this usually-simple function to work. If you are seeing 403 responses in your logs, then your server is blocking access. By way of explanation, I should probably also mention that in order for you to actually 'see' what your server response is, you'll need to flush your own browser cache after making *any* change(s) to your access-control code; Once you've got a copy of a 'denied' page in your cache, your browser will no longer send subsequent requests for that page to your server, so results will look incorrect/strange. So either flush your cache often, or disable it while testing.
Jim