HELP FILE

Manage Your URL Rules in LastPass

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.

Important: 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.
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".
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.
  1. Log in to LastPass and access your Vault by doing either of the following:
    • In your web browser toolbar, click the LastPass icon LastPass, then select Open My Vault.
    • Go to https://lastpass.com/?ac=1 and log in with your username and Master Password.
  2. Select Account Settings in the left navigation.
  3. Click the URL Rules tab, then click Add.
  4. Choose one of the following:
    • Path matching
      1. Enter the Domain or Host and Path information.
      2. Specify whether you want an Exact Host Match and/or an Exact Port Match
      3. Click Add.
    • Host matching
      1. Enter a Domain or Host
      2. Select Yes for the Exact Host Match
      3. Click Add.
    • Port matching
      1. Enter a Domain or Host
      2. Select Yes for the Exact Host Match
      3. Click Add.