2011-01-11 23 views
18

我已經嘗試使用谷歌搜索這個,並沒有拿出任何好的線索...網站如何在IE中運行而不要求「allow scripts/activeX」?

我有一個網頁我測試(這是我的本地機器上的html文檔)。

加載時,IE問我是否要允許腳本和ActiveX(我不知道爲什麼他們被認爲是同樣危險)

熱門網站如cnn.com和stackoverflow.com不問如果我想運行腳本,他們只是做。這是怎麼發生的?我是否必須做一些特別的事情才能防止這種情況發生? (有一個提示,但我不希望這是我的普通用戶出現)

回答

4

這是因爲這些網站沒有在本地運行,它們正在某個其他服務器上運行。

如果您查看工具 - > Internet選項的IE瀏覽器,看看安全,隱私,特別是「高級」。你會看到很多選擇。

+0

所以一旦我把它放在我不會看? – sova 2011-01-11 22:43:59

+0

@sova - nope。把它放在網絡服務器上,然後親自查看。 – 2011-01-11 22:45:50

+0

驚人的(和真氣)。 gracias – sova 2011-01-11 22:46:25

19

不知何故,IE信任本地文件比互聯網上的文件少。這是違反直覺的。但我敢肯定是有原因的......什麼也沒有理由或解釋,但問題在於,如果你把以下

<!-- saved from url=(0017)http://localhost/ --> 

在文檔的頂部,IE就會更信任它。

(還怎麼就沒有在計算器上沒有跆拳道的標籤?急需)

0

導入以下注冊表(以下保存內容作爲.reg文件),就可以得到IE的ActiveX始終沒有詢問你的

決定啓用

Windows註冊表編輯器5.00版

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] 
"NoUpdateCheck"=dword:00000001 
"NoJITSetup"=dword:00000001 
"Disable Script Debugger"="yes" 
"Show_ChannelBand"="No" 
"Anchor Underline"="yes" 
"Cache_Update_Frequency"="Once_Per_Session" 
"Display Inline Images"="yes" 
"Do404Search"=hex:01,00,00,00 
"Local Page"="C:\\WINDOWS\\system32\\blank.htm" 
"Save_Session_History_On_Exit"="no" 
"Show_FullURL"="no" 
"Show_StatusBar"="yes" 
"Show_ToolBar"="yes" 
"Show_URLinStatusBar"="yes" 
"Show_URLToolBar"="yes" 
"Start Page"="http://www.microsoft.com/isapi/redir.dll?prd=ie&pver=6&ar=msnhome" 
"Use_DlgBox_Colors"="yes" 
"Search Page"="http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=iesearch" 
"Check_Associations"="yes" 
"FullScreen"="no" 
"Window_Placement"=hex:2c,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,ff,ff,\ 
    ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,e9,00,00,00,b4,00,00,00,75,04,00,00,54,05,00,\ 
    00 
"Expand Alt Text"="no" 
"Move System Caret"="no" 
"NscSingleExpand"=dword:00000001 
"DisableScriptDebuggerIE"="yes" 
"Error Dlg Displayed On Every Error"="no" 
"NoWebJITSetup"=dword:00000000 
"Page_Transitions"=dword:00000001 
"FavIntelliMenus"="no" 
"Enable Browser Extensions"="yes" 
"UseThemes"=dword:00000001 
"Force Offscreen Composition"=dword:00000000 
"NotifyDownloadComplete"="yes" 
"AllowWindowReuse"=dword:00000001 
"Friendly http errors"="yes" 
"ShowGoButton"="yes" 
"SmoothScroll"=dword:00000001 
"Enable AutoImageResize"="yes" 
"Enable_MyPics_Hoverbar"="yes" 
"Play_Animations"="yes" 
"Play_Background_Sounds"="yes" 
"Display Inline Videos"="yes" 
"Show image placeholders"=dword:00000000 
"Print_Background"="no" 
"AutoSearch"=dword:00000005 

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl] 

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN] 
"iexplore.exe"=dword:00000000 

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\Settings] 
"LOCALMACHINE_CD_UNLOCK"=dword:00000000 
2

您可以在默認情況下始終啓用的ActiveX爲脫機&在線。轉到:

工具> Internet選項>高級>安全

(✓) Allow active content from CDs to run on My Computer 
(✓) Allow active content to run in files on My Computer 
相關問題