By including the ban on every page you will drastically increase the load on your server. Everytime you open a page, you would have to open the ban file and read that to see if they can view the page.
.htaccess does what you are asking without causing the UBB to work harder.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.