先学习学习: Fine-Tune Your Web Site for Windows XP Service Pack 2

41|DeepSeek Harness 侧栏拿到的是绝对路径,为什么目录接口返回相对路径? 为什么 Harness 侧栏文件行是绝对路径,目录接口返回的却是相对路径?用真实客户端组件和本地目录方法复现,覆盖混合斜杠、中文、空格和百分号。 阅读详情

See this in the MSDN LibrarySee This in MSDN Library

Fine-Tune Your Web Site for Windows XP Service Pack 2

Microsoft Corporation

July 2004

Applies to:
   Microsoft Active X controls
   Microsoft Internet Explorer
   Microsoft Outlook Express
   Microsoft Windows XP Service Pack 2 (SP2)

Summary: Make your Web site work well with the new security features in Windows XP SP2 that affect ActiveX controls, file downloads, pop-up windows, and more. (7 printed pages)

Topics include:

Does Your Web Site Use Microsoft ActiveX Controls?
Does Your Web Site Allow Users to Download Files?
Does Your Web Site Use Pop-up Windows?
Does Your Web Site Depend on the Microsoft Java Virtual Machine (MSJVM)?
Browser Window Restrictions
General Tips

Does Your Web Site Use Microsoft ActiveX Controls?

In Windows XP Service Pack 2 (SP2), the modal installation prompt for ActiveX controls will be initially suppressed using the Information Bar. An exception is made for upgrades to controls that have already been installed on the computer, providing that they meet the following criteria:

  • The file registered as the ActiveX control must be signed with Authenticode technology. (This file is referenced from HKEY_CLASSES_ROOT/CLSID/{control_clsid}/InProcServer32, where control_clsid is the CLSID specified by the OBJECT tag.)
  • The publisher name in the digital signature of the new control matches the publisher name in the digital signature of the existing control.
  • If the ActiveX control is packaged in a CAB file, the CAB file must be signed. The DLL or OCX to be installed should also be signed in order for subsequent upgrades to bypass the Information Bar.

If the Information Bar suppresses an ActiveX control and the control takes up area on the page, Internet Explorer will show an inline icon and text in place of the control indicating the ActiveX control needs to be installed. End users will be able to click on this area or the Information Bar to install the ActiveX control.

Is the ActiveX control distributed in a cabinet (CAB) file?

If so, be aware future installation prompts to upgrade this control will also be suppressed by the Information Bar unless you sign the DLL or OCX to be registered as the ActiveX control.

Does your Web site have different behavior based on whether an ActiveX control was installed (for example, automatic redirect or special behavior on refresh)?

Some Web pages automatically redirect or behave differently when refreshed after a control is not installed. In some cases, building your site this way might prevent the user from being able to install the control, providing a bad user experience.

Since a Web page cannot distinguish between the user declining the installation of an ActiveX control and the control getting suppressed by the Information bar, the recommended practice for installing an ActiveX control is to create an instance of the control on a standalone Web page that explains the purpose of the control. Also, use a <SPAN> section within the <OBJECT> tag to dynamically show Help text to the user for installation failures.

Does your Web site have images of the Authenticode dialog?

In order to prevent user confusion, you can update these images to reflect the new Authenticode user interface (UI). You can use the user agent string to determine the correct version of the browser. (See General Tips for more information on detecting SP2).

Does the ActiveX Install dialog prevent the control from being installed?

If the dialog does not provide an option to install the ActiveX control, the file might not be correctly signed. Ensure that you have signed the file and the signature is still valid. By default SP2 now blocks the installation of an ActiveX control when its signature is invalid.

ActiveX Best Practices

  • Do not install ActiveX controls using a pop-up window or HTML dialog.
  • Do not suggest to users they should lower their security settings to install an ActiveX control.
  • Do create an instance of the ActiveX control on a standalone page describing the purpose and end-user impact of the control.

Does Your Web Site Allow Users to Download Files?

In SP2, the Information Bar will suppress file download prompts that are launched automatically.

In SP2, the prompts used for file downloads, mail attachments, shell process execution, and program installation have been modified to be more consistent and clear than they were in Windows XP Service Pack 1 (SP1). In SP2 the publisher information will be shown after downloading a file type that can potentially harm the user's computer and can be signed. (Common examples of file types that can be signed and that can potentially harm the user's computer are .exe, .dll, .ocx, .msi).

Does your Web site launch automatic download prompts?

A file download prompt will be suppressed by the Information Bar if a Web site attempts to navigate to a resource that would have resulted in a file download dialog box being displayed when the user did not initiate the navigation with a mouse click or key press.

To ensure downloads are not suppressed, you can make all downloads the result of a direct user action.

Does your Web site contain files with file extensions that do not match their Content-Type?

If your site serves files that are handled by mime-handlers, the file extensions on those files should correspond to the same ProgID as the mime-handler. If the Content-type ProgID for a given file does not match the file extension ProgID, Internet Explorer in XP SP2 may take the following actions: 1) the user may be prompted to download the file and 2) the file will not be executed in the extension-handler if it fails to execute in the mime-handler.

You can correct these mismatches by changing the content-type to match the file extension. Be sure this is true for your Web pages as well.

Exception: This change does not affect cases where a "content-disposition=attachment" header is sent. In those cases, the file name or extension suggested by the server is considered final and is not changed based on Multipurpose Internet Mail Extensions (MIME) sniffing.

Does your Web site have images of the download dialog on your site, or images/text showing where to click to accept the control?

Make sure you update any images pointing to download prompts to reflect the new download dialogs if the customer is using Windows XP Service Pack 2. To determine the version of the image to show, you can use the User Agent string in Internet Explorer (see General Tips for more information on detecting SP2).

Does your Web site have downloads that should be digitally signed?

SP2 now checks the digital signature for files that can be digitally signed. The most common examples of these files include files with the following extensions: .exe, .dll, .cab, .ocx, and .msi. If you are the publisher of files that can be signed using Authenticode technology, customers will now have the ability to validate that you created the file. This applies to both Internet Explorer and Outlook Express.

Does Your Web Site Use Pop-up Windows?

Internet Explorer includes a pop-up blocker that is turned on by default in SP2. This pop-up blocker might interfere with sites that automatically generate new windows from script. The pop-up blocker includes an Allow list that can help in cases where automatic pop-ups are required. By default, the pop-up blocker will not attempt to block pop-ups launched from the Intranet or Trusted Sites zones.

What does Internet Explorer consider a pop-up window?

Internet Explorer will attempt to block any window opened automatically from script, with the exception of createPopup(). Some common functions that are affected are window.open(), showModelessDialog(), showModalDialog(), and showHelp(). (Note: Targeting the search pane automatically is also blocked due to pop-up blocking restrictions.)

A pop-up window opened as a direct result of a user action (e.g., clicking a page element) will not be blocked. Pop-up blocking does not apply by default to the Intranet or Trusted Sites Zones.

How can I tell if Internet Explorer has blocked my pop-up window?

Functions that return a window object will return null if the window is blocked. Always check the return value of window.open() before using it to avoid script errors when pop-ups are blocked.

Does your site redirect or close a page based on a blocked pop-up?

Wherever possible, do not redirect or close windows based on blocked content. If your site redirects to a different site when a pop-up was blocked, it might be more difficult for the customer to show the blocked pop-up. The re-directed site will not show the Information Bar that usually appears to give customers easy access to the pop-up in this case.

Similarly, if a window is closed due to a blocked pop-up, the Information Bar entry point to show the blocked pop-up will disappear along with the window.

Does your site launch a pop-up from a pop-up?

Wherever possible, do not launch an automatic pop-up window from another pop-up window. The second launch will not be considered a user action in the Pop-up Blocker and will be blocked.

Do you launch the setHomePage() dialog automatically?

In Windows XP Service Pack 2, the setHomePage() function can only be launched from a user action similar to pop-up windows. Automatically launched setHomePage() prompts will be blocked.

Does your Web site open a new window if information is requested asynchronously?

Internet Explorer may block certain windows if the site opens them after requesting information asynchronously even if the user did click a link to open the window. Windows are not blocked if opened directly from a user-initiated action (a mouse-click) before requesting asynchronous information. User-initiated actions are not persisted across navigations.

Does your Web site launch pop-up windows through ActiveX controls, or other objects on the page?

As with other pop-up windows, if the window is not launched from a user action, the Pop-up Blocker will block it. One window will be allowed to open in response to a direct user action.

General Pop-up Recommendations

  • Do not redirect on pop-up window failure.
  • Do not close or automatically redirect browser windows if a pop-up window, download, or ActiveX control is suppressed. If you do, the user will not be able to click on the Information Bar and accept the pop-up window, download, or ActiveX control.
  • Do not launch a pop-up window from a pop-up window.
  • Do not launch multiple pop-up windows from one user action.
  • Do not launch automatic pop-up windows from showModelessDialog() or showModalDialog() calls.

Does Your Web Site Depend on the Microsoft Java Virtual Machine (MSJVM)?

See Microsoft Java Virtual Machine Support on the Microsoft Web site.

Browser Window Restrictions

Does your Web site position windows so that the title bar or address bar is above the visible top of the display, or the status bar is below the visible bottom of the display?

Review your code to ensure you understand the restrictions now in place for script-initiated windows using the window.open() or window.createPopup() methods. The script can call the same methods for the creation of an Internet Explorer window with chrome (using the window.open() method) or an Internet Explorer chromeless pop-up window (using the window.createPopup() method). However, the design might need to be reviewed to ensure that pop-up windows are appropriately visible to the user and that the status bar contains accurate information.

The following are guidelines for working with script-initiated window calls in a process running the Windows Restrictions Security feature.

For windows opened using window.open():

  • Expect the status bar to be present, and code for it. The status bar will be on by default and is 20-25 pixels in height.
  • Adjust your window's size and content so that it will fit well visually with the window's overall size. The window will not cover the taskbar, so it might lose 40 pixels if the status bar is on and the taskbar is not accounted for. Vertically size the window no more than 30 pixels outside the taskbar.
  • Do not open windows off-screen—they will be moved by the smallest offset of X and Y coordinates that allows the window to fully display on-screen.
  • As before, the display of the window will be affected by the display theme, font size, and resolution, so you might also need to account for these UI influences when you are designing your windows.
  • Note: window.open() with fullscreen=yes will now result in a maximized window, not a kiosk mode window.

For windows opened using window.createPopup():

  • Adjust the window's size and content so it will fit well visually with the window's overall size. With this new feature, the window will not cover its parent window's title bar or status bar, so it might lose 40 pixels if the title and status bars are not accounted for. Vertically size the window no larger than the currently visible area of the page.
  • Do not open chromeless windows outside the HTML rendering surface of Internet Explorer—they will be moved by the smallest offset of X and Y coordinates that allows the window to be fully displayed inside the client area. There is one exception: up to half of the window can exist outside the left or right edge of the Internet Explorer client area.
  • As before, the display of the window will be affected by the display theme, font size, and resolution, so you might also need to account for these UI influences when you are designing your windows.

General Tips

Detecting Internet Explorer in SP2

You can use window.navigator.userAgent to detect if the browser connecting to your site is Internet Explorer in SP2.

var g_fIsSP2 = false;
function browserVersion()
{
   g_fIsSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
   if (g_fIsSP2)
   {
   //This browser is Internet Explorer in SP2. 
   }
   else
   {
   //This browser is not Internet Explorer in SP2.
   }
}

If the user agent string contains "SV1", the browser connecting to your site is Internet Explorer in SP2.

Does your site use showModelessDialog() or showModalDialog() calls?

Try not to create a new instance of an ActiveX control, automatically launch file downloads, or automatically launch pop-up windows from these dialogs, if possible. The Information Bar will not be shown when content is suppressed in this scenario, and the user will not have an easy way to allow the content. The suggested workaround is to initiate these behaviors from an Internet Explorer window.

Does your site re-direct to another Web page when content is blocked?

Try not to re-direct to another Web page when the browser suppresses content such as ActiveX controls, download prompts, or pop-ups, if possible. The Information Bar might not appear on the re-directed page when this content is suppressed, and the user might not easily be able to see the content.

香橙派5b 移植 imx415 修改设备树,以为例,关闭ov13855,添加imx4151;0;1;0;1;0;1;0;1;0;1;0;1;0;以此类推,修改三个dtsi。 阅读详情

相关推荐

【操作系统】实验楼操作系统实验三——系统调用

操作系统实验3——系统调用 环境配置 ​ 首先同样是配置环境 cd /home/shiyanlou/oslab tar -zxvf hit-oslab-linux-20110823.tar.gz -C /home/shiyanlou 实验步骤 添加函数声明 cd ~/oslab/linux-0.11/include/linux gedit sys.h //添加内容: extern int sys_whoami(); extern int sys_iam(); fn_ptr_sys_call_table

qq_46612803的博客 6360

Microsoft Internet Explorer遇到问题需要关闭……

Microsoft Internet Explorer遇到问题需要关闭…… 在使用IE浏览网页的过程中,出现“Microsoft Internet Explorer遇到问题需要关闭……”的信息提示。如果单击“发送错误报告”按钮,则会创建错误报告,单击“关闭”按钮之后则会引起当前IE窗口关闭,如果单击“不发送”,则会关闭所有IE窗口。这是为了了解用户在使...

weixin_34056162的博客 402

【论文精度】生成式预训练模型——BART(Bidirectional and Auto-Regressive Transformers)

​ BART是一个预训练的seq2seq的去噪自编码(denoising autoencoder)模型,BART以下方式进行训练①用任意的噪声函数(noising function)去破坏文本;②学习一个模型来重建原始文本。它使用一个标准的基于transformer的神经机器翻译架构,可以看作是BERT(双向编码器)、GPT(left-to-right解码器)以及其他预训练方案的推广。

weixin_45828972的博客 7457

要在Internet Explorer 模式下打开此页面,请使用管理员权限重新安装 Microsoft Edge.

windows 11 更新后 Edge 不能用 Internet Explorer 模式了,导致一些老网站插件无法使用。创建 .reg 文件,内容如下。

CyrusZhou的专栏 2万+

从网口变压器到TVS管:手把手设计通过4KV浪涌的以太网电路

本文详细解析工业级以太网接口4KV浪涌防护设计,从网口变压器选型到TVS管布局,提供通过IEC61000-4-5标准测试的完整方案。重点介绍Bob Smith电路优化和PCB设计技巧,帮助工程师有效应对雷电感应和设备开关瞬态干扰,确保工业设备稳定运行。

study的专栏 299

企业微信群机器人Webhook配置全攻略:从创建到发送消息的完整流程

本文详细解析了企业微信群机器人的Webhook配置全流程,从创建机器人、获取关键Webhook地址,到使用代码发送文本、Markdown等多种消息类型。内容涵盖安全加固、错误处理及与CI/CD等系统集成的实战指南,帮助企业快速构建高效、稳定的内部通知系统。

ik678901的博客 1812

Microsoft Internet Explorer 遇到问题需要关闭。我们对此引起的不便表示抱歉。

<!-- <!--.style1 {color: #0000FF}.style2 {color: #0000CC}.style3 {color: #000000}.style4 {color: #FF0000}.style5 {color: #FF0000}.style6 { color: #000066; font-size: 18pt;}-->-

邀月周记 2万+

LeRobot SO100仿真操控避坑指南:从MuJoCo模型调试到实机同步(附参数修正模板)

本文详细解析了LeRobot SO100机械臂在MuJoCo仿真操控中的常见问题与解决方案,包括关节转向符号调试、偏移值校准及实机同步技术。通过实战案例和参数修正模板,帮助开发者高效解决仿真与实机差异,提升机器人开发效率。

weixin_29064009的博客 250

windows系统进程漫谈

刚刚装完系统时,打开任务管理器你会发现进程数并不多(我的干净的无任何驱动windows 2000在18个左右).可过一段时间你会发现进程数莫名增加,下决心清理一下,结果机器挂了,看来只是胆子大是不行的.正所谓知己知彼百战不殆,所以还是先了解一下这些进程吧!iexploreiexplore.exe进程是Microsoft Internet Explorer的主要程序。这个微软Windows应用程序让

mhpboy192的专栏 8025

SQL注入详解

SQL注入(SQL Injection)是一种常见的Web安全漏洞,主要形成的原因是在数据交互中,前端的数据传入到后台处理时,没有做严格的判断,导致其传入的“数据”拼接到SQL语句中后,被当作SQL语句的一部分执行。 从而导致数据库受损(被脱库、被删除、甚至整个服务器权限陷)。 即:注入产生的原因是后台服务器接收相关参数未经过滤直接带入数据库查询...

渗透之路,攻防之间皆学问 26万+

Ultralytics 框架中predict 与 track 的区别

在 Ultralytics 框架中,predict 和 track 是两种不同的推理方法,分别用于目标检测(或分割、姿态估计)和目标跟踪任务。

浩瀚之水的专栏 1129

如何激活和关闭IE浏览器

如何激活和关闭IE浏览器//激活并打开IE void lounchIE() { HWND h=FindWindowEx(NULL, NULL, NULL, "Microsoft Internet Explorer"); ShellExecute(h, "open", "http://www.pcvc.net", NULL,NULL,SW_SHOWNORMAL); } //关闭IE及其它应用

jiangxinyu的专栏 1294

基于DPCNN实现电商情感分析任务

下载链接项目中使用的模型是DPCNN,在模型中我们定义了三个组件,分别是embedding层,卷积层和全连接层。Embedding层:将每个词生成对应的嵌入向量,就是利用一个连续型向量来表示每个词卷积层:提取语句中的语义信息Linear层:将结果映射成2大小用于二分类,即正反面的概率。

CSDN 精品推荐 1633

Microsoft Internet Explorer (mshtml.dll) Remote Code Execution

Published: 22.03.2006 Updated: 23.03.2006Product:Microsoft: Internet Explorer 6.0 SP2Microsoft: Internet Explorer 6.0 SP1Microsoft: Internet Explorer 6.0Microsoft: Internet Explorer 7.0 Beta 2Seve

1700

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

“Microsoft Internet Explorer”问题

前段时间大概在10月底左右,在浏览网页时会不时跳出“Microsoft Internet Explorer”错误提示框,起先是在浏览下载中心时不跳出来一个框来, 不过每次浏览的页面是不一样,其实网页已经打开了,我在点确定后,这个框是关闭了,可网页还是好好存在的,并没有关闭。 首先我排除了电脑问题,因为在无论在单位还是在家都会出现这个情...

weixin_33807284的博客 306

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

浅谈RSS与样式的结合应用

    当前国外很多大的网站都提供了在线RSS订阅服务, 每当你点击订阅页面上桔红色的XML标时, 浏览器内就会出现XML文件的代码视图。当然, 这对计算机专业人员来讲没有任何问题, 但对于普通浏览者来讲,情况就大不一样了,他们通常会不知所措或是一头雾水... 因此,如何使RSS既可以提供订阅所需的XML标准数据,又可以给非专业的浏览者一个良好的“表现”视图就显得非常重要。     一些国外的

coyichen的专栏 2326

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

呵呵, 新华网的英文也有RSS了...

今天上新华网的时候, 偶然发现英文首页上也有个RSS的标(http://www.chinaview.cn/), 点之, 出现熟悉的XML代码, 呵呵, 在网上看说新华网的英文新闻在GOOGLE上的排名较高, 所以我也来订个看看~

coyichen的专栏 2069

为什么我用不了PGtGM收GMAIL啊? 晕~

哇, 太晕了~ 今天好不容易申请了一个GMAIL的帐号, 打算好好用一用新邮箱, 为了能让OUTLOOK接收GMAIL, 我安装了PGtGM,可它一检查信箱就报错: Came out of new version threadCreated POPCreated SMTPCreated IMAPStarting POPStarting SMTPStarting IMAPStarting mai

coyichen的专栏 1899

发现了RSS的一个新的订阅方法

目前通过RSS Reader来订阅RSS 非常的不方便, 需要用户自已手工将URL复制到Reader的URL里面, 然后才能完成订阅过程, 十分的麻烦, 我发现有些Reader可以通过特殊的订阅方式来快速的完成订阅动作, 关键在于URL的写法, 例如SharpReader的用户只需先运行SharpReader后, 点下面这个URL就会自动将订阅地址送到SharpReader里面去, 很是方便:

coyichen的专栏 1580

终于看到国内有网站做RSS了

 新华网RSS , http://www.xinhuanet.com/rss.htm,初步感觉还可以, 呵呵

coyichen的专栏 1365

bloglines 在处理GUID时有问题?

前几天我在bloglines 订阅了新华网的RSS(http://www.xinhuanet.com/rss.htm), 订阅完成后我在浏览新闻时发现新闻标题的链接是错误的, 后面多了些东西, 于是我把新华网的RSS直接用IE打开, 发现RSS文件里写的链接是正确的, 而在每个ITEM里有个, 好像bloglines把它给当前新闻的链接了??? 呵呵, 真是怪啊~

coyichen的专栏 855

Vue开发篇之组件通信与表单:点了任务行,谁来更新列表

用四个Vue组件完成任务录入与状态切换,跟踪props、事件转发和表单草稿的归属。

code2cat的博客 277

AI 答案漂移检测:嵌入相似度、阈值标定与告警实现

做 GEO 监测的人迟早会遇到一个尴尬:上周还在报告里写「这个问句已经稳定被引用」,这周客户自己一问,答案换了个品牌。问题不在监测方法,而在多数监测系统只存「有没有提到」,不存「答案长什么样」。这篇写我们这套漂移检测模块的实现,目标是回答一个问题:同一个问句,今天的答案和两周前相比,变了多少,这个变化是正常抖动还是异常。

helloworld19920的博客 182

九、list

类模板,我们可以根据所需要的数据类型实例化出类,如list<int>。list文档介绍函数名称功能说明list()无参构造构造并初始化n个val拷贝构造函数使用迭代器进行初始化构造使用列表进行初始化。

Chen_harmony的博客 237

import cn.hutool.core.collection.CollUtil常用库介绍一下

在平时的 Java 开发中,只要涉及到集合的判空、去重、求交集/差集、List 转 Map 等操作,都可以优先看看。

qq_26889291的博客 217
上一篇: [转发]Creating a File Lock on a File Using Jdk1.4
下一篇: 如何加快ORACLE本地OCI的调用速度
coyichen
博客等级 码龄22年 0粉丝 15原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值