htaccess should be no different on wordpress than any other site.. the only thing is you need this code for your permalinks to work
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
now for the hotlinking, this page will generate what you need:
http://www.htaccesstools.com/hotlink-protection/