How to automatically disable document modus IE7

Hello,

We developed websites where customers can find personal financial information. Now in some cases our customers automatically open a website in Internet Explorer in document modus IE7. It is possible that the user changes this setting by himself at his PC. But I prefer to make a server setting in order to prevent websites displaying in IE7 doc modus. Is that possible?

(I think the problem with the document modus only occurs when our clients use our website in intranet environment. I see that there is a setting 'display intranet sites in compatibility view'. So, how can we automatically disable this option at the server?)

Regards,

Arne
adiemeerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

duncanb7Commented:
You can use browser detection to detect the user request header which is modified by users on clicking  F12 key in order to  determine what version of document mode users are trying to change, and modified  the page's user-agent  in the header information  before send or response back to user's browser.
For example only,
Users call financial.php to your server and in your finanical.php you have code something like that as follows and the re-send the page to users with or without condition similarly in Example-1 and Example-2
and with your wishing user-agent information for users that will force user to following your rule to view the your-original-finanical.php webpage.

Hope understand your question completely. If not , please point it out.

Duncan
Example-1: detect IE7 document mode and re-send
=========================================
<?php
$curl = curl_init();  //initital a curl call
curl_setopt( $curl, CURLOPT_USERAGENT,       Mozilla....MSIE 10..your default info...."
$ua= $_SERVER['HTTP_USER_AGENT'];  //get the user's user-agent
if (strpos($ua," "MSIE 7.0)>0){
//Detected IE 7  and change user-agent for IE 10 and  re-send it by curl() 
curl_setopt( $curl, CURLOPT_USERAGENT,       Mozilla....MSIE 10..your new info......."
}
curl_setopt( $curl, CURLOPT_URL,            "http://yourdomian/your-original-financial.phg  );
$htm = curl_exec($curl); //re-send the page to users 
?>

Open in new window


Example-2, whatever users' document mode, just resend it to original page.
=========================================
<?php
$curl = curl_init();  //initital a curl call
curl_setopt( $curl, CURLOPT_USERAGENT,       Mozilla....MSIE 10..your default info...."
culr_setopt( $curl, CURLOPT_URL,            "http://yourdomian/your-original-financial.phg  );
$htm = curl_exec($curl); //re-send the page to users 
?>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
adiemeerAuthor Commented:
Thank you
0
duncanb7Commented:
Thanks for your points

Have  a nice day

Duncan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.