# Configuring a `DM` Task: Block and Allow Table Lists

+ The block and allow lists filtering rule can be used to filter all operations of some databases or some tables
+ Define a global filter rule set by using **`block-allow-list`** in the task configuration file
  + **`do-dbs:`** The allow list of upstream schemas to be migrated
  + **`do-tables:`** The allow list of upstream tables to be migrated
  + **`ignore-dbs:`** The block list of upstream schemas to be migrated
  + **`ignore-tables: `** The block list of upstream tables to be migrated
+ Reference the block and allow list rules in the data source configuration to filter tables to be migrated
```
~!@# Global Block & Allow Table Lists@!~
block-allow-list:
  ~!@bw-rule-1@!~:
    do-dbs: ["test.*", "user"]
    do-tables:
    - db-name: "test.*"
      tbl-name: "t.*"
    - db-name: "user"
      tbl-name: "information"
  bw-rule-2: 
    ignore-tables:
    - db-name: "user"
      tbl-name: "log"
```
```
~!@# Reference the Block & Allow List@!~
mysql-instances:
  - source-id: ~!@"mysql-replica-01"@!~
    block-allow-list:  ~!@"bw-rule-1"@!~
```
```
```
--------------------------------------------------------------------
Skip this configuration if you do not need to filter specific tables 