How to disable file:// protocol in firefox
I want the users not to browse the local files on the machine.
I already disabled SaveAs and OpenFile functions.
I want user not to browse the local files or open it if he know the full path.
This question came from our site for professional and enthusiast programmers.
University of Waterloo has a page detailing a change to browser.js to disable file, chrome, about, etc. protocols.
That was the first result on Google for "firefox disable file protocol," by the way -- probably would have been the first one if this question wasn't the first result.
I found a way to do this.
First the scenario of our problem is:
My suggested solution:
Hide elements like P,H1 by using
You can use this image created by me to make it as body background:
Here is the result: