homepage Welcome to WebmasterWorld Guest from 54.204.94.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Modifying USER AGENT with mod_rewrite
blombo

10+ Year Member



 
Msg#: 899 posted 12:22 pm on Jan 19, 2004 (gmt 0)

Hi,

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
"NotExistingBrowser"

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,
Martin

 

bird

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 899 posted 12:28 pm on Jan 19, 2004 (gmt 0)

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.

blombo

10+ Year Member



 
Msg#: 899 posted 12:35 pm on Jan 19, 2004 (gmt 0)

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

Martin

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved