Forum Moderators: phranque
The code goes in your .htaccess file.
You can either use the deny from syntax or else use a rewriteRule for this.
There are many prior code examples here in the forum.
You might also wish to deny access to your site via proxies.
You could also limit things to one particular type of browser, such as Firefox or Safari.
Check the prior forum examples, and post your best-effort code here.