Mont
Thu 28th Aug '03, 11:11am
I have run into a situation with my forum where avatars, and images uploaded via vB are being directly linked to in other forums. Obviously, I don't want this to happen. To remedy this, I created the htaccess file below, but anytime someone doesn't come in from my home page, they get a forbidden error. I even tried adding the URL of one of my individual forums to it, but it didn't help. Is there some way to protect my images, and still make it possible to come directly into a forum via a link or bookmark? TIA
Mont
## Your domain.tld goes here:
SetEnvIfNoCase Referer "^http://(www\.)?2coolfishing\.com(/|$)" local_ref=1
SetEnvIfNoCase Referer "^http://(www\.)?2coolfishing\.com/ttmbforum/forumdisplay\.php?s=&forumid=3(/|$)" local_ref=1
## any another domains that you want to be able to display your files:
SetEnvIfNoCase Referer "^http://(www\.)?weeks-service\.com(/|$)" local_ref=1
SetEnvIfNoCase Referer "^http://(www\.)?aota\.net(/|$)" local_ref=1
SetEnvIfNoCase Referer "^http://(www\.)?greengrouper\.com(/|$)" local_ref=1
## Allow empty referers (old browsers, private, errors, bookmarks,...):
SetEnvIfNoCase Referer "^$" local_ref=1
## Some translation sites I have noticed:
SetEnvIfNoCase Referer "^http://babel\.altavista\.com/" local_ref=1
SetEnvIfNoCase Referer "^http://translate\.google\.com/" local_ref=1
## To add more, follow the above pattern:
## start with '^http://', change all '.' to '\.', and end with '/'.
## Option #1 file types you want to protect
<FilesMatch "\.(gif|jpe?g|png|php)$">
Order Allow,Deny
Allow from env=local_ref
</FilesMatch>
Mont
## Your domain.tld goes here:
SetEnvIfNoCase Referer "^http://(www\.)?2coolfishing\.com(/|$)" local_ref=1
SetEnvIfNoCase Referer "^http://(www\.)?2coolfishing\.com/ttmbforum/forumdisplay\.php?s=&forumid=3(/|$)" local_ref=1
## any another domains that you want to be able to display your files:
SetEnvIfNoCase Referer "^http://(www\.)?weeks-service\.com(/|$)" local_ref=1
SetEnvIfNoCase Referer "^http://(www\.)?aota\.net(/|$)" local_ref=1
SetEnvIfNoCase Referer "^http://(www\.)?greengrouper\.com(/|$)" local_ref=1
## Allow empty referers (old browsers, private, errors, bookmarks,...):
SetEnvIfNoCase Referer "^$" local_ref=1
## Some translation sites I have noticed:
SetEnvIfNoCase Referer "^http://babel\.altavista\.com/" local_ref=1
SetEnvIfNoCase Referer "^http://translate\.google\.com/" local_ref=1
## To add more, follow the above pattern:
## start with '^http://', change all '.' to '\.', and end with '/'.
## Option #1 file types you want to protect
<FilesMatch "\.(gif|jpe?g|png|php)$">
Order Allow,Deny
Allow from env=local_ref
</FilesMatch>