How to Change Your FireFox Location Bar Search Engine

By Angsuman Chakraborty, Gaea News Network
Tuesday, October 25, 2005

If you, like me, has been the victim of Yahoo Spyware aka Yahoo IM then you may notice that in the firefox location bar if you type in a keyword, it takes you to Yahoo preferences page. Previously it used to perform a Google “I’m Lucky” Search and take you to the first page of its search results automatically.

If you want to restore the Google “I’m Lucky” search then perform this simple steps:
1. Type about:config in Firefox location bar and press Enter

2. Type keyword in Filter textbox and you will see only the preference keyword.URL.

3. Double-click on keyword.URL and change the value to:

That’s all it takes to restore default keyword search functionality in Google.

Note: You can use this to change to any search engine for keyword search. You need to just change it to the query string of another search engine of your choice. For example if you want to use the huge Gaea Times database for your default search then you should replace it with:

Filed under: How To, Web

Jamison Bryant
August 21, 2010: 10:09 pm

Thanks for this! Installed a product that changed my loc bar search engine to Yahoo, which is quite annoying for a developer like me.

August 13, 2010: 5:15 pm

THanks soooooooooooooooo much! yours was the first and best i came across….fixed a irritating issue. i didnt even know exactly why it had changed, but it had and now i can be quickly taken to where i want. thanks so much!

Veselin M

July 20, 2010: 2:04 am

Awesome!!! Works great. Simple and clean.

July 16, 2010: 4:19 pm

Thank you sooo much for this :) We need more people like you in this world


July 15, 2010: 4:41 pm

Thank you, you’re a genius.

July 11, 2010: 2:01 pm

You are currently my hero for telling me how to fix this!

Some malware called “MS BING” was ruining my awesome surfing experience!

June 29, 2010: 1:32 pm

Thank you!!! I got stuck with AOL search and it is awful. I am so glad to have google’s “I’m feeling lucky” search back!

June 26, 2010: 2:58 am

Thank you! Even though I had uninstalled a toolbar, my address bar searches were still being routed through a very odd site. This is phenomenally better.

June 26, 2010: 1:52 am

Thank you..that was very helpful.

June 25, 2010: 6:24 pm

Thank you!
im tired of those programs that change default search.

June 23, 2010: 10:35 pm

Thanks for this Tip - it had us stumped until now!

June 13, 2010: 6:34 pm

i love you. soooo much.

May 30, 2010: 8:37 am

Thank you so much! This was driving me mad!

Vinod S
May 9, 2010: 7:27 am

Thanks for the post. An ask toolbar installation had changed my location search from google to ask. I have been grappling to get it back to google. Thank you.

April 30, 2010: 10:10 am

now thats what i call clean instruction thnx alot i had chrome and i really like it but i had to switch to firefox since the internet speed was veyr low and i was sad i didnt have google thingy thnx

April 14, 2010: 3:44 pm

Thanks so much! I had an website in the keyword.URL and google is just so much better.

Thanks again!

Duke Audri
April 12, 2010: 11:19 pm

I actually was in search of how to do this because I accidentally a full install on AIM rather than a custom install. It robbed my Firefox off its innocence, like completely.

It changed my homepage, it installed a toolbar, it changed the default search engine (in the upper right corner) to AIM, and changed the search engine my address bar normal uses.

I had no clue to change it back, but this helped very much. Almost 5 years since this was posted and its still extremely valuable.


April 12, 2010: 9:36 am

It’s unbelievable that nearly five years after you made this post people are still having to make use of it because Yahoo is still carrying out these hit-and-runs.

My crime was to install a Firefox upgrade. Next thing I know, I have a Yahoo toolbar, which I got rid of. A few minutes later I type search terms into the address bar, only to taken to a Yahoo page.

Thank you so much for taking the time to direct us how to get rid of the Yahoo disease. It’s a despicable style that they adopt, and Mozilla should be ashamed for packaging it with their upgrades.

te Jay
April 7, 2010: 4:08 am

I have done everything you asked but when I turn laptop off and come back its back to yahoo.. its driving me nuts!! its only been since I installed 3.6 on mozilla :o( I am using Vista can anyone help me please..I Loathe YAHOO

March 29, 2010: 11:23 pm

Hi, I tried this and nothing happens. Help! I want to get rid of Yahoo!

March 28, 2010: 5:18 am

Thank you very much! You’ve stopped me going insane.
Take that MyWebSearch! :D

March 15, 2010: 1:58 pm

Another thank you. Firefox has ALWAYS used the google search for me, but after I installed the latest updated version, I started getting the annoying yahoo search. Problem solved.

March 3, 2010: 4:54 pm

great, thanks! finally got rid of stupid winamp search!

Thank you man
February 28, 2010: 3:01 pm

Thank you thank you thank you!

I’ve been searching everywhere for a way to change the default search engine for the search bar and you’ve provided it!

I absolutely love you sooooooo much right

Dick S
February 23, 2010: 3:25 pm

I couldn’t get rid of the spam Yahoo search. Thanks so much for the information.

February 15, 2010: 5:43 am

instead of typing that im feeling lucky search just type “” which is the default value there u can also right click and select reset

February 11, 2010: 12:28 pm

Thank you! I was forever having issues with this due to a installed PDF creator that was just buggy to begin with. It further frustrated me that it was gone. I’m so glad for it to be back again.

will not be displayed