• 0

.htaccess clarification please


Question

Can someone explain the difference betwen those two if there's any? Basically I want to display a different image when someone try to hotlink to a picture hosted in my website.

 

jZpfuz8.jpg

 

 

Thank you.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

you know, it'd be a lot easier if you copy+pasted the actual text. looks like the only difference is that the first one also checks for https requests while the latter doesn't.

 

I'd recommend that you don't do the hotlink check at all though since it's not actually reliable and has great potential for false positives and inconveniences.

Link to comment
Share on other sites

  • 0

The NC stops Apache processing the following rules, so in the second example it'll skip over the second RewriteCond I think.

Pretty sure that will break if there's no HTTP Referrer sent though (They're optional, so you can make browsers stop sending them, your site shouldn't break in that case)

Link to comment
Share on other sites

This topic is now closed to further replies.