Make change in Internet option Automatically by Registery

M

mahmoudmga

Hi
I want to make some change in internet option , security tab:
Tools \ Internet Options \ Security \ Internet \ Sites \ Advanced ==>
add a specific site to the zone.

Tools \ Internet Options\ Security \ Internet \ Custom Level:
* Initialize and script ActiveX controls not marked as safe for
scripting ==> Enable
* Automatic prompting for file downloads ==> Enable
* Allow script-initiated windows without size or position constraints
==> Enable

*Use pop-up Blocker ==> Disable
* Display video and animation on a webpage that does not use external
media player ==> Disable
* only allow approved domains to use ActiveX without prompt
==>Disable

How do i can this change Automatically by Registery.
Or:
i want make/use an application that makes these changes
automatically.

Thanks.
 
T

Tim Meddick

You can't add individual "specific" sites to the "Internet Zone".

You may only specify sites and add them to either the "Trusted" or the
"Restricted" zones.

To do this in the registry - go to

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\ZoneMap\Domains

....and add and name a new-key under here to the internet address of the
site you want to add.

e.g. (nastypics.com)

Then, if the site requires the "www." before it's site-name, create
another sub-key named www.

e.g. (nastypics.com\www)

Finally create a new dword value under the ("www" key if it has it) or (the
under it's main key "nastypics.com") and name this dword value: *

Give this new * a value of 2 to make it a Trusted Site, or assign it 4 to
make it part of the "Restricted Sites".

But, to the other part of your question, I can be more specific;

Create a new batch-file (a text-file with the BAT extension instead of TXT)
and into it copy and paste all of the following :

------------------- copy between lines -------------------

@echo off
SETLOCAL
set TMPREG=HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones\3
echo.
echo Re-setting Internet Security Settings;
echo.
echo Run unsafe ActiveX: Enable
echo Pop-up Blocker: Disable
echo.
reg ADD "%TEMPREGKEY%" /v 1201 /t REG_DWORD /d 0 /f
reg ADD "%TEMPREGKEY%" /v 1809 /t REG_DWORD /d 3 /f


------------------- copy between lines -------------------


*NB The second line beginning with the "set" command should end with
"Zones\3" but may not appear that way due to line-wrap of this post.

Save and run the batch file to automatically re-set your requested custom
settings for the internet zone to :

ENABLE: Running ActiveX not marked as safe.
DISABLE: Pop-up blocker.


(To reverse the settings made by the batch-file, make another batch-file
and name it slightly differently, say, with the word "undo", and again
paste the script above into it. But reverse the numerical values thus ; )

reg ADD "%TEMPREGKEY%" /v 1201 /t REG_DWORD /d 3 /f
reg ADD "%TEMPREGKEY%" /v 1809 /t REG_DWORD /d 0 /f


P.S. I have uploaded the above batch-file and it's related undo script, to
the 4Shared.com web-site. Here is the link to the download page to get the
file : IE_Security_Settings.zip which contains both files plus regular
reg-file counterparts for both.

http://www.4shared.com/file/ajAECd8V/IE_Security_Settings.html

==

Cheers, Tim Meddick, Peckham, London. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top