To deny access to a site using an .htaccess file, you can use the `Deny` directive in combination with other directives. Here's an example of how you can accomplish this:
1. Create or edit the `.htaccess` file in the root directory of your website.
2. Add the following code to the file:
```
Order deny,allow
Deny from all
```
The `Order` directive specifies the order in which Apache processes the allow and deny directives. The `deny,allow` order means that the "Deny" directives are processed before the "Allow" directives.
The `Deny` directive with the argument `from all` denies access to all visitors to your site.
3. Save the changes to the `.htaccess` file.
Once you have saved the `.htaccess` file with these rules, access to your site will be denied for all users. They will see a "403 Forbidden" error when trying to access any page on your site.
Please note that modifying the `.htaccess` file requires appropriate access and permissions on your web server. If you're unsure about making changes, consult your hosting provider or system administrator for assistance.