Bingo,
did a little digging through my refrences and found some lines that fit your need perfectly!
LINK
Read the tutorial, change the variables to your domain and the file extensions you need, and add those lines of code (but leave the empty line between .htaccess and the other lines!)
Good luck
Post back if you need more help.
Edit:
You can also use this for non-apache linux servers (i don't know what 1and1 is using)
with the following qoute by the author:
Quote:
It's a good idea to do both yoursite.com and www.yoursite.com. Also, if you know of any other sites that you want to allow to use your images, be sure to add in a line for them in this file.
If the http_referer doesn't match one of the strings you've provided in those lines, the image request will result in a 403 error.
|
both methods willl work. Just modify the variables as needed.