How do I block access to specific file types using .htaccess?

To block access to specific file types using .htaccess, you can use the `FilesMatch` directive along with the `Deny` directive. Here’s how you can do it:

<FilesMatch "\.(pdf|docx|zip)$">
Deny from all
</FilesMatch>

In this example, the `FilesMatch` directive is used to match files with extensions `.pdf`, `.docx`, and `.zip`. You can modify this regex pattern to match the file types you want to block. The `Deny from all` directive denies access to these files for all users.

Make sure you place this code in your `.htaccess` file in the root directory of your website. Also, ensure that you have the `mod_authz_host` module enabled in your Apache server for this to work.