Exclude URI from Item

I’m new to Bitwarden, so please bear with me…
I have this item saved for this website (same website, just different URI)
https://iamdannywyatt.com:2083
https://iamdannywyatt.com/cpanel

Now I have 2 other individual saved items for these:
https://forum.iamdannywyatt.com/
https://iamdannywyatt.com:2096/

When I go to the cPanel I see these last 2 options, which doesn’t make sense to me, because they are for completely different websites, even though they share iamdannywyatt.com

I tried adding
https://iamdannywyatt.com:2083
https://iamdannywyatt.com/cpanel
set to “Never” in the detection option, inside these:
https://forum.iamdannywyatt.com/
https://iamdannywyatt.com:2096/

For example like this:

But it isn’t working.
Any tips on what I need to do?
Should I go the “Exact” option route instead?

@alltiagocom Welcome to the forum!

It’s not 100% clear what you are attempting to accomplish, because we do not know what URL is in your address bar when you “go to the cPanel”, not do we know what your “Default match detection” setting is, or what match detection options you have configured for each URI in the three vault items that you mentioned.

That being said, I believe that you can solve your problems by setting the match detection method to “Host” for all 4 URIs in these items. For the two non-cPanel vault items (https://forum.iamdannywyatt.com/ and https://iamdannywyatt.com:2096), you should remove the added cPanel URIs (https://iamdannywyatt.com:2083 and https://iamdannywyatt.com/cpanel).

FYI the “Never” match option makes the match detection behave as if you had deleted that URI from the vault item — the vault item could still match on a website if there are other URIs in the vault item that match.

For example when I go to
https://iamdannywyatt.com/cpanel
the address bar sometimes shows that URL, sometimes it shows
https://iamdannywyatt.com:2083

Now since I have vault items such as
https://forum.iamdannywyatt.com/
https://iamdannywyatt.com:2096/

when I click the fields in the username or password when I’m visiting
https://iamdannywyatt.com:2083
https://iamdannywyatt.com/cpanel

Bitwarden shows me multiple options to select from.
In this case, I just want to see the vault item related to
https://iamdannywyatt.com:2083
https://iamdannywyatt.com/cpanel

So it would show me 1 item, not 3, for example.

I’m now using the RegEx option, which seems to cover most of the options I want. One example:
^((http|https)(:\/\/)((?!www\.)|www.)iamdannywyatt\.com\/wp\-login\.php)

I can be very specific with this without using lots of URIs.

The goal is not to have all 4. I also don’t have
https://iamdannywyatt.com:2083
https://iamdannywyatt.com/cpanel
in the same item as the other 2.

Wouldn’t this option actually exclude that URI?
What you are saying is that it’s the same as if the URI is not there, which doesn’t seem to make much sense to have it then. It makes sense that it forces the exclusion of that URI, which is a difference behavior.

I’ve been using the default matching up until today when I started using RegEx.

First of all, the “default” match detection option is something that you choose under Settings > Auto-Fill . Default URI Match Detection. When you first set up a Bitwarden browser extension, the default method is “Base Domain”, but this can be changed if something else fits your needs better.

Second, the most straightforward way to solve your problem, as I suggested above, is to define your three vault items as follows:


:one: cPanel Item:
URI 1: https://iamdannywyatt.com/cpanel (Match Detection: Host)

URI 2: https://iamdannywyatt.com:2083 (Match Detection: Host)

 

:two: Forum Item:
URI 1: https://forum.iamdannywyatt.com/ (Match Detection: Host)

:three: Port 2096 Item:
URI 1: https://iamdannywyatt.com:2096 (Match Detection: Host)


 

Regex is also possible, but it is more difficult to set up and maintain, and opens the possibility for creating a security vulenrability.

 


 

It excludes the URI from being considered in the match detection algorithm (as if the URI was never there to begin with). I was describing the way that option works in Bitwarden, which may or may not make sense to you. Some people use it as a way of archiving unused items (to prevent those items from being matched); another use-case is if you want URI 1 to be used as the URL to be launched, or be used as a source for the displayed favicon, but you only want your credentials auto-filled on URLs that match URI 2, etc.

If you would like for the “Never” option to work in a different way, you might consider voting for the following feature request (or submitting your own):