First off!
You must not forget that you have to escape all periods (and many other characters) in RewriteCond lines.
EX:
folder.example.com would be listed as
folder\.example\.com
Onto your confusion. . .BTW this explanations have been offered hundreds, if not thousands of times at Webmaster World:
"begins with" [google.com]
"ends with" [google.com]
You would only use the ^(begins with) and $ (ends with) statements together if that is your specific intention. (generally applied in this manner for very short (even blank) UA's.
Two applications of your example that would work on the same UA (at least and in the example (IF complete UA) that you provided:
#begins with Microsoft
RewriteCond %{HTTP_USER_AGENT} ^Microsoft [OR]
#Ends with URL
RewriteCond %{HTTP_USER_AGENT} URL$ [OR]
Or you may simply do a contains either:
#note absence of both leading ^ and/or trailing $
RewriteCond %{HTTP_USER_AGENT} (Microsoft|URL) [OR]
(Please note; not sure if the forum still breaks the pipe character. If it continues to do that correction of the broken character will be required).
---------
RewriteCond %{HTTP_REFERER} ^-?$ [NC]
I'm not sure with the way I used it is invoking the unintended consequences? not sure what you mean by 'multiple conditions'
Once again and using the line you supplied as an example of multiple conditions:
# Multiple Condition criteria; Refer, UA and IP all required
RewriteCond %{HTTP_REFERER} ^-?$
RewriteCond %{HTTP_USER_AGENT} ^psbot [OR]
RewriteCond %{REMOTE_ADDR} ^109\.
what I just realized, is just how the
<snip>
yes?
No.
If you have those 28-29 lines listed in consecutive order and within your htaccess?
If so?
Your asking for multiple condition/criteria to be met before any action(missing from your lines).
1) Your asking for one of the UA's to required
2)both blank refer and UA (blank UA in conflict)
3) finally, requiring lines 1 & 2 to come from one of the IP's you've designated.
If you actually have the statements separated by something such as:
RewriteRule .* - [F]
And just omitted that in your example?
My apologies for the confusion.
Hope this helps.
Don