how do sites run in IE without asking for "allow scripts/activeX"?

I have tried googling this and have not come up with any good leads...

I have a webpage I'm testing (it's an html document on my local machine).

When loaded, IE asks if I want to allow scripts and activeX (I don't get why they are considered equally dangerous)

Popular sites like and don't ask me if I want to run scripts, they just do. How and why does this occur? Do I have to do something special to keep this from happening? (There is a prompt, but I don't want this to appear for my normal users)


Somehow IE trusts local documents less than the ones on the Internet. Which is counter intuitive. But I'm sure there is a reason... what has no reason or explanation, however, is that if you put the following

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

at the top of your document, IE will trust it more.

(also how come there is no WTF tag on StackOverflow? Desperately needed)

It's because those site aren't running locally, they are running on some other server somewhere else.

If you check out Tools->Internet Options for IE and look at Security, Privacy and especially "Advanced". You'll see a whole host of options.

You can always enable ActiveX for offline & online by default. Go to:

Tools > Internet Options > Advanced > Security :

(✓) Allow active content from CDs to run on My Computer
(✓) Allow active content to run in files on My Computer

Import following registries(saving following content as a .reg file) you can get the IE ActiveX always enabled without asking for your decision

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Disable Script Debugger"="yes"
"Anchor Underline"="yes"
"Display Inline Images"="yes"
"Local Page"="C:\\WINDOWS\\system32\\blank.htm"
"Start Page"=""
"Search Page"=""
"Expand Alt Text"="no"
"Move System Caret"="no"
"Error Dlg Displayed On Every Error"="no"
"Enable Browser Extensions"="yes"
"Force Offscreen Composition"=dword:00000000
"Friendly http errors"="yes"
"Enable AutoImageResize"="yes"
"Display Inline Videos"="yes"
"Show image placeholders"=dword:00000000

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

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

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

Need Your Help

Get the 2 digit year in T-SQL

sql sql-server date

I need to get the current 2 digit year and increment by one. So the current number I'm looking for should be 11.

What is the advantage of using scala pattern matching instead of java switch case?

java scala functional-programming pattern-matching

Everybody says that pattern matching is a great feature in functional languages. Why?