Disable File Access from Internet Explorer

If you search the Internet you will find a so called registry tip: "Disable Access to File URLs in Internet Explorer". This does work when writing for example "C:\" in address bar. But if you open a webpage that has a link to C:\ ( <a href="C://">link</a> ) or a frame that loads C:\, the restriction does not work any more. Also you can browse the disk by opening "Folders" options from Explorer bar, right clicking on C and selecting "Open". How to fix this "bug"?!
How do you totally disable access to the hard disk from Internet Explorer (at least the link and frame access and the Folders access - i'm not talking about disabling the browse dialogs too because that is another story). I've seen a security program do this ... whenever you tried to browse any part of a drive, no matter what "trick" you used, it would close the Internet Explorer window. Oh! And ONE MORE thing: Can anybody explain to me what happens when Internet Explorer is used to browse a drive or a directory or something, because in this case Internet Explorer seems to "morph" into the normal Explorer (explorer.exe) program (i think there is a link between Explorer.exe and Iexplore.exe, but i
don't know for sure). Can you use this to make a program that detects when Internet Explorer "morphs" and close it? Or what can you do about it?
ANY HELP ON THIS MATTER IS WELCOMED!
LAME-ERAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bhagyeshtCommented:
option 1
this is not exactly a good method only for IE 5.5 and above.
you can customise your folder template. in the template include the following script.
<script>
      window.opener = top;
      window.close();
</script>
this will close your window when you navigate to that folder.
you can make all you folders have the same template
option 2
search on www.codeguru.com for customizing folders there is an article which allows you access to the folder via a password. when the file protocol is fired you have to enter the password to proceed.
option 3
keep an application running which uses getobject and gets the IE object. use the dom to find out if file is accessed.

IE and explorer are tightly coupled. IE doesnt change to explorer when u access the file it just changes the looks as they use the same component. close all instances of ie and explorer.
now open IE check in the taskmanager. u shall see iexplore.exe now hit a file url it changes the looks but its still iexplore.exe not explorer.exe. since the components are the same it behaves like this. one way is to have your addin toolbar which checks the pages accessed.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LAME-ERAuthor Commented:
Option 1: How do I make my folders have the same template?! Keep in mind that I want to write a program that does this... I don't want it to be done manually...

Option 3: I am willing to use this option because it looks more stable ... But I don't have a clue what you're talking about ... Can you give me an example code? ... or just give me an answer to option 1.
0
bhagyeshtCommented:
Opt 1 basically the template is a html file renamed as htt. customise the folder manually you shall see some hidden system files. you may need to set the option for viewing these files. now you once  you have done it you can copy it. the trickey part is since its a system file you wont be able to overright it directly. Not tried on that part but in such a case DOS's attrib command should help you.
totally there are 2 files  one is desktop.ini and the second is inside the same folder under a folder named folder settings named folder.htt

you need to look into thse a bit.
0
bhagyeshtCommented:
accept answer by bhagyesht
Bhagyesh Trivedi
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.