HELP FILE

Manage Your URL Rules

You can specify how you want LastPass to handle specific URLs that you visit if you are using more than one set of credentials for a website. There are three types of URL matching behaviors you can control – path, host, and port – and you can choose to add more than one of these rules to be used to display fewer login entries for your websites.

Are you a LastPass Enterprise admin? You can manage your URL rules for your organization from the Admin Console.

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. If you have not done so, log in to LastPass.
  2. In your web browser toolbar, click the LastPass icon LastPass then click Open My Vault.
  3. Click Account Settings in the left navigation.
  4. Click the URL Rules tab, then click Add.
  5. 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. From your LastPass Vault, click Account Settings in the left navigation.
  2. Click the URL Rules tab, then click Add.
  3. 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. From your LastPass Vault, click Account Settings in the left navigation.
  2. Click the URL Rules tab, then click Add.
  3. Enter a Domain or Host, and for Exact Port Match, specify a value of Yes. Click Add.