# Send Whitelist and Blacklist Queries

When you query QMS, you can add a whitelist or blacklist to the query to modify the query.

To use a whitelist or blacklist

- Send queries with one of the following action parameters:

  - the `Whitelist` parameter set to the name of the whitelist to use.
  - the `Blacklist` parameter set to the name of the blacklist to use.

For example:

    action=Query&Text=phone&Whitelist=AllowList

    action=GetQueryTagValues&Text=phone&FieldName=MODEL&Whitelist=AllowList

These actions apply the `AllowList` whitelist, and remove any terms from the specified `Text` that are not in the whitelist.

    action=Query&Text=mobile phone&Blacklist=BanList

    action=GetQueryTagValues&Text=phone&FieldName=MODEL&Blacklist=BanList

These actions applies the `BanList` blacklist, and remove any terms from the specified `Text` that appear in the blacklist.

Refer to the QMS Reference for more information.

_FT_HTML5_bannerTitle.htm