Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium



Posted on 2006-04-16
Medium Priority
Last Modified: 2009-07-29
i just checked the HTTP_USER_AGENT for IE and it says

"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"

i wonder why it says mozilla in the begining??????
Question by:loving_chronic

Expert Comment

by:Bhaskar Ganapathe
ID: 16467168
Hi loving_chronic,

If you compare the User-Agent headers of IE and Firefox with those of microbrowsers, you will find that the User-Agent header of IE and Firefox contains the word "Mozilla" while those of microbrowsers do not. This can be served as a simple rule to determine whether a user agent is a web browser on a personal computer or a microbrowser on a mobile device.

Note that the above rule does not work in all cases. The User-Agent header of some microbrowsers also contains the word "Mozilla". For example, some Nokia 6630 cell phones use a "Mozilla compatible" User-Agent header. The reason is that Nokia 6630 is a web-compatible cell phone and can accept HTML content, but some websites that are designed for desktops will deny access to Nokia 6630 if the "Mozilla compatible" User-Agent header is not present.

"Mozilla compatible" User-Agent header of the Nokia 6630 cell phone:
Mozilla/4.0 (compatible; MSIE 5.0; Series60/2.8 Nokia6630/4.06.0 Profile/MIDP-2.0 Configuration/CLDC-1.1)

If you find the word "Mozilla" and the OS name "Windows NT" in the User-Agent string, it is almost certain that the user agent is a web browser on a computer but not on a mobile device; if you find the word "Mozilla" and the browser name "Firefox", it is certain that the user agent is a Firefox browser running on a computer since Firefox does not have a mobile device version (at the time of this writing).


Accepted Solution

KennyTM earned 500 total points
ID: 16467391
That's a historical reason...

For what's happening you could read


under "User agent spoofing", 2nd paragraph.

Author Comment

ID: 16467396
you mean to say that the server responds with HTML in case of "mozilla" else xHTML

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Internet has made sending and receiving information online a breeze. But there is also the threat of unauthorized viewing, data tampering, and phoney messages. Surprisingly, a lot of business owners do not fully understand how to use security t…
By following these Magento e-commerce development tips, you can increase your website's conversion and profitability. Read this post for more details.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question