How to avoid URL entries from being passed to Search Engine Topic is solved

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
krishna12
Moongazer
Moongazer
Posts: 10
Joined: Wed Oct 07, 2015 2:42 pm
Location: ME

How to avoid URL entries from being passed to Search Engine

Unread post by krishna12 » Sat Apr 15, 2017 5:00 pm

I brought up a new system - Server 2016 - and installed PM V. 27.2.1 64bit.
Whenever I enter, in the URL bar, a random string or an illegal URL, that entry is passed on to the default Search Engine as a search string.
I want to stop that behavior, and to just get a message of either illagal URL or "server not found".

In the "Manage Search Engines" choices I un-ticked "Show Search Suggestions", restarted PM, but this did not help.

Could not see any relevant entries that I can set in the Options/Adv. Options menues or in about:config.

How can I stop this string passing behavior?
-----------------------------------------------------------
My addons:
NoScript V. 2.9.0.14
PaleMoon Commander V. 1.7.3
uBlock Origin V. 1.12.0

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4056
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Pallid Planetoid » Sat Apr 15, 2017 5:27 pm

If I type in an incorrect URL I get the usual "Server not found" message.

1) If an entry starts with "http...." in combination with a ":" then it is assumed to be a URL so the browser will attempt to find a webpage matching what you have entered.

2) If you include the domain for an address, i.e. ".whatever" and the there is no URL address that matches that domain you will once again get the 'Server not found" message.

As I understand it, anything other than 1 or 2 is presumed to be a string (search).

To clarify, you want the address bar to only expect URL's and not do any "search" strings.
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4056
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Pallid Planetoid » Sat Apr 15, 2017 5:36 pm

I would have though perhaps either of these two options might have helped, but for me it makes no difference disabling either/both:
no help.png
You do not have the required permissions to view the files attached to this post.
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4056
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Pallid Planetoid » Sat Apr 15, 2017 5:45 pm

I'm noticing a lot of boolean URL bar preferences among a few others as well that look potentially promising (click to enlarge for readability):
boolean preferences for URL.png
You do not have the required permissions to view the files attached to this post.
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

wyMnNHXB

Re: How to avoid URL entries from being passed to Search Engine

Unread post by wyMnNHXB » Sat Apr 15, 2017 5:50 pm

I believe that the behavior you describe can be fixed by turning "keyword.enabled" in about:config to "false"

krishna12
Moongazer
Moongazer
Posts: 10
Joined: Wed Oct 07, 2015 2:42 pm
Location: ME

Re: How to avoid URL entries from being passed to Search Engine

Unread post by krishna12 » Sat Apr 15, 2017 5:55 pm

Thank you for replying.

Yes, I wish that any typed string in the urlbar would not be "searched".

The 2 options that you show in the User Interface panel are related to past URL entries only, not to a non-URL string that never been registered ny the browser before.

Re the option in the about:config, I looked at them (see my OP) but did not see anything relevant based on their name.
There is a chance that one of the obscure names listed them would do the trick though, so if no one can provide a more definitive answer, I might go a scrutinize those entries to a greater depth.

krishna12
Moongazer
Moongazer
Posts: 10
Joined: Wed Oct 07, 2015 2:42 pm
Location: ME

Re: How to avoid URL entries from being passed to Search Engine

Unread post by krishna12 » Sat Apr 15, 2017 5:56 pm

Yes! keyword.enabled = false did the trick.

Thanks!

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4056
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Pallid Planetoid » Sat Apr 15, 2017 8:31 pm

I was about to suggest try setting browser.search.suggest.enabled to "false", but found the question is resolved....never would have known keyword.enabled would necessarily have to do with the address bar. :think:

.... talk about what is "... relevant based on their name", this one doesn't fit the bill either...
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4056
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Pallid Planetoid » Sat Apr 15, 2017 8:45 pm

I like that, decided to incorporate this preference setting as well and see how I like it since I've already got a search bar (which is what I use to search), hence it seems redundant to search from address bar too. :idea:
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

wyMnNHXB

Re: How to avoid URL entries from being passed to Search Engine

Unread post by wyMnNHXB » Sat Apr 15, 2017 8:54 pm

Off-topic:
Pale Moon Rising, it is still possible to search from the address bar using search prefixes (for some reason called "keyword" in FF/PM). Go to "Manage search engines", set a keyword (for instance, "gg" for Google) and type "gg" before the search query.

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4056
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Pallid Planetoid » Sat Apr 15, 2017 9:14 pm

wyMnNHXB wrote:
Off-topic:
Pale Moon Rising, it is still possible to search from the address bar using search prefixes (for some reason called "keyword" in FF/PM). Go to "Manage search engines", set a keyword (for instance, "gg" for Google) and type "gg" before the search query.
You would then think that the preference keyword.enabled would have to do specifically with this "keyword" search function based on the "keyword" that the user had presumably setup i.e. your example "gg" and would not have anything to do with random text entered into the address bar. But as we find, keyword.enabled set to "false" disables all text entered into the address bar from being "searched" (unless as you have pointed out keyword(s) have been setup).

In other words, I would have expected keyword.enabled to toggle between enabling/disabling the "keyword" search function as you have described here and would not have anything to do with random text entered into the address bar from getting searched. At least that would have been my expectation...

Thanks for the tip!! :thumbup: (I vaguely recall reading about this "keyword" option, but had forgotten about it)
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 33082
Joined: Sun Aug 28, 2011 5:27 pm
Location: Tranås, SE

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Moonchild » Sun Apr 16, 2017 11:43 am

The "keyword" preference is a master switch for searching from the address bar. Entering a non-URL entry in the address bar implies a keyword search (this is also why a single term will just try to send you to the domain) and if you don't enter any specific keyword (omit it), it will use the default search engine instead; this was done so default engine searches didn't need the constant entry of the default engine keyword to search (a logical progression from introducing this feature).

I don't like this behavior myself - but since a good portion of our users does use this since Firefox introduced it, it's there and enabled by default. I may change this in the future and remove the ambiguous "default search" from the address bar by default. We have a (more fully functional) search bar in the UI for a reason.
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb

User avatar
Tomaso
Board Warrior
Board Warrior
Posts: 1620
Joined: Thu Jul 23, 2015 4:09 pm
Location: Norway

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Tomaso » Sun Apr 16, 2017 11:56 am

Moonchild wrote:I may change this in the future and remove the ambiguous "default search" from the address bar by default.
Please do.
I've always had keyword.enabled set to false myself.
IMO, there's absolutely no point in having this feature enabled by default, considering that we've got a perfectly working search box right next to the address bar, like you pointed out.
This only causes unwilling web searches!
Personally, I'd prefer that all location bar suggestions (History / Bookmarks / Open tabs) were also disabled by default.

User avatar
JustOff
Banned user
Banned user
Posts: 2083
Joined: Thu Sep 03, 2015 7:47 pm
Location: UA

Re: How to avoid URL entries from being passed to Search Engine

Unread post by JustOff » Sun Apr 16, 2017 5:42 pm

Tomaso wrote:
Moonchild wrote:I may change this in the future and remove the ambiguous "default search" from the address bar by default.
Please do.
Please don't! 8-)

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4056
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Pallid Planetoid » Sun Apr 16, 2017 6:16 pm

You can always please some of the people some of the time but you can never please all of the people all of the time. :think: 8-)
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

BenFenner
Lunatic
Lunatic
Posts: 408
Joined: Mon Jun 01, 2015 12:52 pm
Location: US Southeast

Re: How to avoid URL entries from being passed to Search Engine

Unread post by BenFenner » Sun Apr 16, 2017 6:24 pm

There are a handful of things I do to make sure that the exact text I type into the location bar is what is requested.
By default, there are prefixes, suffixes, and keyword searches applied.

I too believe the location bar is not for searching. Not for searching bookmarks, not for searching DuckDuckGo, not for searching anything.
If I'm searching a URL to find out if it is malicious or not, I damn well sure do not want my browser taking me to that URL. And vise versa.


Don't forget to turn these off (set to false, or blank them out as appropriate) in about:config.

browser.fixup.alternate.prefix
browser.fixup.alternate.suffix

keyword.enabled

browser.urlbar.autoFill
browser.urlbar.autoFill.typed
browser.urlbar.autocomplete.enabled
browser.urlbar.formatting.enabled
browser.urlbar.suggest.bookmark
browser.urlbar.suggest.history
browser.urlbar.suggest.openpage
browser.urlbar.suggest.history.onlyTyped
browser.urlbar.trimURLs


This should be done in addition to the obvious things in the UI settings, like disabling search from the location bar, etc.

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4056
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Pallid Planetoid » Sun Apr 16, 2017 8:47 pm

The last two listed: "browser.urlbar.suggest.history.onlyTyped" and "browser.urlbar.trimURLs" are already default "false" (so don't need to be changed) all the others would need changing from default if not desired (I prefer the convenience that some of them provide myself).
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

GreenGeek

Re: How to avoid URL entries from being passed to Search Engine

Unread post by GreenGeek » Sun Apr 16, 2017 11:18 pm

BenFenner wrote: browser.fixup.alternate.prefix
browser.fixup.alternate.suffix
better (IMO):
browser.fixup.alternate.enabled, false
Tomaso wrote:
Moonchild wrote:I may change this in the future and remove the ambiguous "default search" from the address bar by default.
Please do.
If we are voting I'd be "Please do" (but I already tweak so many default settings that are set for the [adjectives omitted] general population that this one is no real issue).

PhilK

Re: How to avoid URL entries from being passed to Search Engine

Unread post by PhilK » Sun Apr 16, 2017 11:39 pm

As much as I dislike searches from the address bar myself, I also know that a lot of people these days really like that feature.

So in my mind, keeping it but making it easy to disable is probably the best strategy.

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4056
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: How to avoid URL entries from being passed to Search Engine

Unread post by Pallid Planetoid » Mon Apr 17, 2017 1:01 am

PhilK wrote:As much as I dislike searches from the address bar myself, I also know that a lot of people these days really like that feature.

So in my mind, keeping it but making it easy to disable is probably the best strategy.
I agree... dislike searches from address bar as well, but as you say doing so is quite prevalent these days so not making it default would be a concern to a lot of users. It's certainly easy enough to disable. 8-)
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising