you now have the option to permanently set your homepage to an address of your choice. Even you as the owner won't be able to change it since the option for typing your homepage would be not available on your General options tab. To do that, do the following:

For example The homepage of Mozilla is Here I am going to use the Blind Computing web page as an example. So if you just copy and paste, and do the following steps, Blind Computing will be your homepage and you won't be able to change it!)

1. Open your Notepad and start typing in a blank document the following text (or copy and paste, but make sure to change the address to your own preferred one in the process):

lockPref("browser.startup.homepage", "");
2. Save this document as "mozilla.txt".
3. Download the byteshifter program from
or from
This program will help you encode any file by a specified offset. However, without being too technical, just unzip this program and run it. It does not need to be installed as it is a standalone program. In fact, you can choose to delete it after encoding your file, though keeping it won't do you any harm. Rather you may need to use it later to change some settings in Firefox.
4. Next, run this program after unzipping it. You will see that the program has got to
(A) ask you the name of the file you wish to encode: simply browse to the file you just saved as Mozilla.txt in step 2 above.
(B) After you load your file, tab to the box where it asks you for the output file name, here type mozilla.cfg
(C) Tab once more and you will come to a place where it asks you for the offset number. By default, the number will be
0. Delete this number and type in 13. Ignore the next field where it asks you through a checkbox whether to wrap this or not.
(D) then tab to the "Go" button. A message will appear telling you that your file is successfully encoded. Then exit the program. You are done with it for now.
5. Copy or move the file called mozilla.cfg to the installation folder of Mozilla Firefox. By default, it is "C:\Program Files\Mozilla Firefox".
6. Then navigate to that folder C:\Program Files\Mozilla Firefox. Here look for a folder called "greprefs".
7. Get into this folder and look for a file called all.js. It is a JavaScript file so you will have to open it with Notepad. (To do that, simply go to your File menu in Windows Explorer and choose "Open with" submenu).
8. When the file loads, type in (or simply copy and paste the line below) as the last line in that file:

pref("general.config.filename", "mozilla.cfg");
Save the file with this modification and close it.
9. That's it. From now on your homepage will not be arbitrarily be changed even by yourself! In the event that you wish to change it, just make sure to repeat the steps 1 to 5 above, just changing the address of your homepage and then encode your text file as a CFG file.

Please note: you need to encode a cfg file for this trick to work.

Also keep in mind that this trick does not only work with locking your homepage: you can lock any preference which you think someone may change. In fact, this is another way of locking your Firefox so that nobody can take advantage of the powerful scripting functions of Firefox to harass the rest of the world with their ads and flashy pages.

Go Back