Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Modifying USER AGENT with mod_rewrite



12:22 pm on Jan 19, 2004 (gmt 0)

10+ Year Member


is it possible to set the user agent to static value with mod_rewrite?

So, every requesting user agent should be rewritten to anything like

I have an apache 1.3.27 with mod_rewrite, mod_proxy enabled.

I tried
RewriteRule .* - [E=HTTP_USER_AGENT:NotExistingBrowser]

but it didn't work.

Thanks a lot,


12:28 pm on Jan 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

I don't expect this to be possible.

What would the point be? You'd only be falsifying your own log files, and you can edit those later to your liking anyway.


12:35 pm on Jan 19, 2004 (gmt 0)

10+ Year Member

The Problem is the Exchange 2003 Web Access.

If you use it with Internet Explorer and mod_rewrite/proxy everything goes wrong, if you use it with any other browser itīll work. So, if I'm able to hardcode the user agent, it will also work with Internet Explorer



Featured Threads

Hot Threads This Week

Hot Threads This Month