Jump to content


.htaccess clarification please


  • Please log in to reply
2 replies to this topic

#1 Copernic


    Neowinian Senior

  • Tech Issues Solved: 2
  • Joined: 03-September 04

Posted 08 October 2013 - 21:14

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.





Thank you.

#2 primexx


    Neowinian Senior

  • Tech Issues Solved: 6
  • Joined: 24-April 05

Posted 09 October 2013 - 04:12

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.

#3 The_Decryptor



  • Tech Issues Solved: 4
  • Joined: 28-September 02
  • Location: Sol System
  • OS: iSymbian 9.2 SP24.8 Mars Bar

Posted 09 October 2013 - 05:25

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)

Click here to login or here to register to remove this ad, it's free!