Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can I mod_rewrite the HTTP_USER_AGENT?

Status
Not open for further replies.

jhughes96

Programmer
Mar 28, 2001
15
GB
Hi,
does anyone know the syntax for performing a mod_rewrite on the HTTP_USER_AGENT? (don't ask me why!)

joel
 
Hi Arie1,
thanks for your reply.

The RewriteCond directive allows you so performing conditional checking on the HTTP headers but the real work is done by RewriteRule - this is where transformations are performed. The problem is that I can only find examples of the RewriteRule rewriting the URL - not the HTTP Headers (which are obviously not part of the actual URL).

any ideas? anyone?

joel
 
I doubt that that would be possible. I misread your original question.
 
Thats ok Arie1, I've solved the problem now a different way although I'm sure its possible for a proxy to alter useragents.

joel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top