HELP FILE

Manage Your URL Rules

There are times when you use multiple sets of credentials (usernames and passwords) for the same website. For instance, for an online retailer, you may have one set of credentials for shopping, and have a second set of credentials for paying your store credit card. By default, LastPass handles this ambiguity by entering credentials for the closest URL match to the URL that is currently in your browser, while also presenting you with other credentials to choose from if you want an alternate option.

You can change this behavior, however, and specify how you want LastPass to handle specific URLs that you visit. There are three types of URL matching behavior you can control, and you can control one or more of these behaviors at the same time.

Topics in this article:

Path Matching

Host Matching

Port Matching

Path Matching

If you have credentials to both Amazon.com/shopping and Amazon.com/creditcard, you can specify a rule of “/shopping” to only supply your credentials to Amazon.com/shopping and not Amazon.com/creditcard. To specify such a rule to match the path after the domain (for instance, the “/shopping” in Amazon.com/shopping), do the following:

  1. Log in to LastPass and access your Vault.
  2. In the left menu, click Account Settings.
  3. Click the URL Rules tab and then click Add.

  1. Enter the Domain or Host and Path information, then specify whether you want an Exact Host Match and/or an Exact Port Match and click Add. For more information, please see host matching and port matching.

Host Matching

If you have one set of credentials for "Amazon.com" and another set of credentials for one of its subdomains, "shopping.Amazon.com", you can control LastPass behavior for these sites by specifying a host matching rule. For instance, you could specify a rule for LastPass to only supply credentials to "Amazon.com", not "shopping.Amazon.com". To specify such a rule, do the following:

  1. Log in to LastPass and access your Vault.
  2. In the left menu, click Account Settings.
  3. Click the URL Rules tab and then click Add.

  1. Enter a Domain or Host, and for Exact Host Match, specify a value of Yes. Click Add.

Port Matching

You may have different credentials for different ports on the same Site. (A port is specified at the end of a URL and is directly preceded by a colon. In https://Amazon.com:7634, the port is 7634.) For instance, you could have one set of credentials for https://Amazon.com:7634 and another set of credentials for https://Amazon.com:8547. To instruct LastPass to only supply credentials for one port, do the following:

  1. Log in to LastPass and access your Vault.
  2. In the left menu, click Account Settings.
  3. Click the URL Rules tab and then click Add.

  1. Enter a Domain or Host, and for Exact Port Match, specify a value of Yes. Click Add.