為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How can I save a password only for a path of a domain?

more options

I have a domain, which has different password boxes.

For example I have example.com/adminboard and example.com/customuserlogin. So now I want to save a password, which gets filled in example.com/adminboard, but does not get filled into example.com/customuserlogin. How can I do that?

I have Saved Password Editor (https://addons.mozilla.org/de/firefox/addon/saved-password-editor) installed, so I can modify the data. My best try was to change the "Host" value there to "https://example.com/adminboard/" (not the subsequent slash). When I changed it, the favicon (which is different on the two sites) on the left changed from the old one to the new one, so I had hope it would work now, but unfortunately it does not.

Any idea how to do this?

I have a domain, which has different password boxes. For example I have example.com/adminboard and example.com/customuserlogin. So now I want to save a password, which gets filled in example.com/adminboard, but does not get filled into example.com/customuserlogin. How can I do that? I have Saved Password Editor (https://addons.mozilla.org/de/firefox/addon/saved-password-editor) installed, so I can modify the data. My best try was to change the "Host" value there to "https://example.com/adminboard/" (not the subsequent slash). When I changed it, the favicon (which is different on the two sites) on the left changed from the old one to the new one, so I had hope it would work now, but unfortunately it does not. Any idea how to do this?

所有回覆 (4)

more options

The built-in Password Manager can only deal with web addresses. What you could do is to use a form filling add-on. They can be set up the way you want.

Go to the Mozilla Add-ons Web Page {web link} (There’s a lot of good stuff here) and search for what you want.

more options

A hostname is just the part between https:// and the next / character.

The logins.json file has a field called formSubmitURL but Firefox doesn't store the full path, which would have been a good way to resolve this issue. It's just the hostname of the form submit action (usually but not always the same site).

I think an add-on or third party password manager will be needed for this site.

more options

If you can suggest add-ons this would be good.

With my add-on I can also modify the "submit prefix", which I assume is the formSubmitURL, but when I set this to the one used at http://example.com/adminboard (it is "http://example.com/adminboard"), Firefox does still auto-fill my password into http://example.com/customuserlogin.

more options

People mention a variety of commercial and free programs here, and I don't have a specific recommendation. There are many password managers, some using local storage and some using cloud storage, some with close browser integration, and some that use the clipboard. I haven't tried any recently, although it might be time...

Here's one example: KeePass is FOSS and can run on Linux using the .Net-emulating Mono package. More info, sometimes conflicting: