|
|
|
|
|
|
![]() |
#1 |
Of all the things I've lost, I miss my mind the most.
|
Allowing a domain to hotlink you
Ok, just used the .htaccess in the FAQ section, and stopped some hotlinkers.
![]() this is what I have ErrorDocument 404 http://www.mydomain.com/404.shtml RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*mydomain\.com(:[0-9]+)?(/.*)?$ [NC] RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$ RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L] how do I add in domains to that that are ok to hotlink?
__________________
Our 3D Comics and Props on Renderotica |
![]() |
![]() |
![]() |
#2 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*otherdomain\.com(:[0-9]+)?(/.*)?$ [NC]
add as many of these as you need above the RewriteRule line with the domains that you want to allow
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#3 |
Lord help me, I'm just not that bright
|
when I have questions like that, I just call BrianH at webair... easy
![]() |
![]() |
![]() |
![]() |
#4 | |
Of all the things I've lost, I miss my mind the most.
|
Thanks sparky!
![]() Quote:
__________________
Our 3D Comics and Props on Renderotica |
|
![]() |
![]() |
![]() |
#5 |
Of all the things I've lost, I miss my mind the most.
|
Thought I'd pass this along, Mike at Phatservers sent me this.
![]() http://www.htmlbasix.com/disablehotlinking.shtml
__________________
Our 3D Comics and Props on Renderotica |
![]() |
![]() |
![]() |
#6 |
Registered User
|
Yeah I know that place I use has been 404 alot latly. Heres another one, I love the huge amount of options. Most generators do standard, username password, bot blocking etc. This is nice
http://cooletips.de/htaccess/ |
![]() |
![]() |
![]() |
#7 |
Internet! Is that thing still around?
|
Hi RedCherry
Can you show me a movie file that you have protectd with this: ErrorDocument 404 http://www.mydomain.com/404.shtml RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*mydomain\.com(:[0-9]+)?(/.*)?$ [NC] RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$ RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L] If anyone has any type of movie file protected with htaccess I would like to try our test on it.
__________________
Zipped Adult Sites 4 fast easy FREE web sites and plug-ins! |
![]() |
![]() |
![]() |
|
|