X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

change home page

Posted

Is there any way to "lock" the home page so apps can't change it? Sometimes I install new programs to evaluate them and they change my home page. I'm using Firefox 3.6.12. Thanks!

Chosen solution

The following method will not prevent the home page from being changed, but whenever you start Firefox, it will reset the home page back to the one that you want if it has been changed.

  1. First you need to open the profile folder, for details of how to do that see the Profiles - Where Firefox stores your bookmarks, passwords and other user data article.
  2. Close Firefox, and using a text editor create a file called user.js (this file may already exist)
  3. Add the following line to user.js, using the home page that you want.
user_pref("browser.startup.homepage", "http://www.google.com/");


For more details on that file see http://kb.mozillazine.org/User.js_file

Read this answer in context 7

Additional System Details

Installed Plug-ins

  • npmnqmp 989898989877
  • Logitech Device Detection
  • BitDefender QuickScan Web Netscape Plugin
  • Adobe Acrobat Plug-In Version 7.00 for Netscape
  • 6.0.12.732
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • RealJukebox Netscape Plugin
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Winamp Application Detector
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Default Plug-in
  • Google Update
  • Shockwave Flash 10.1 r102
  • iTunes Detector Plug-in
  • GEPlugin
  • Next Generation Java Plug-in 1.6.0_22 for Mozilla browsers
  • Yahoo Application State Plugin version 1.0.0.7
  • 4.0.50917.0
  • Office Live Update v1.3
  • NPWLPG
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
  • RealPlayer(tm) HTML5VideoShim Plug-In
  • Npdsplay dll
  • DRM Store Netscape Plugin
  • DRM Netscape Network Object

Application

  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729) SearchToolbar/1.2

More Information

TonyE
  • Moderator
1041 solutions 8840 answers

Chosen Solution

The following method will not prevent the home page from being changed, but whenever you start Firefox, it will reset the home page back to the one that you want if it has been changed.

  1. First you need to open the profile folder, for details of how to do that see the Profiles - Where Firefox stores your bookmarks, passwords and other user data article.
  2. Close Firefox, and using a text editor create a file called user.js (this file may already exist)
  3. Add the following line to user.js, using the home page that you want.
user_pref("browser.startup.homepage", "http://www.google.com/");


For more details on that file see http://kb.mozillazine.org/User.js_file

Modified by TonyE

cor-el
  • Top 10 Contributor
  • Moderator
10753 solutions 96760 answers

Note that if you want to change the home page then you need to make the change in user.js as well or your change gets lost on the next start of Firefox. You can do that by copying the corresponding line from prefs.js to user.js after you have closed Firefox.


  • Help > Troubleshooting Information > Profile Directory: Open Containing Folder

Question owner

Thank you kindly, guys!

I created a user.js file and entered the line exactly as you showed (adding my preferred home page where appropriate). However there was already a line like that in the prefs.js file. Does "user.js" override "prefs.js"?

Thanks, again!

Question owner

Oh, Now i get it! Done! - and thanks!

cor-el
  • Top 10 Contributor
  • Moderator
10753 solutions 96760 answers

Yes. On each start of Firefox the file user.js is read after the file prefs.js and overrides corresponding settings in prefs.js.
If you close and restart Firefox then the current settings are saved in prefs.js and if you didn't make any changes then the lines in prefs.js and user.js are the same.

Question owner

Thanks again, you guys ROCK!

patbeames 0 solutions 3 answers

Made the necessary changes to both prefs.js and user.js but to no avail. Homepage just keeps getting overridden by the same page. Simple question - why on earth is a Homepage hijack without the user's permission possible? Oh well, back to Explorer.

cor-el
  • Top 10 Contributor
  • Moderator
10753 solutions 96760 answers

To which page is your home page changed?

Did you check for extensions that make such a change?


Start Firefox in Troubleshoot Firefox issues using Safe Mode to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).

  • Don't make any changes on the Safe mode start window.

See:

patbeames 0 solutions 3 answers

Now established that when my wife clicks on a link in her email client - Incredimail - Firefox goes straight to that page on subsequent openings until another link is clicked then that page in turn becomes the first page opened.

This doesn't happen with any other browser.

Default theme in use

Modified by patbeames