Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by adiemeer
at 2024-07-29 01:58:30
Point:500 Replies:3 POST_ID:829151USER_ID:11829
Topic:
Web Browsers;;
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
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
Expert: duncanb7 replied at 2024-07-29 23:52:41
Thanks for your points
Have a nice day
Duncan
Have a nice day
Duncan
Author: adiemeer replied at 2024-07-29 23:44:49
Thank you
Accepted Solution
Expert: duncanb7 replied at 2024-07-29 07:56:51
500 points EXCELLENT
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
=========================================
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 callcurl_setopt( $curl, CURLOPT_USERAGENT, Mozilla....MSIE 10..your default info...."$ua= $_SERVER['HTTP_USER_AGENT']; //get the user's user-agentif (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?> 1:2:3:4:5:6:7:8:9:10:11:
Example-2, whatever users' document mode, just resend it to original page.
=========================================
<?php$curl = curl_init(); //initital a curl callcurl_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?> 1:2:3:4:5:6: