Sign in to follow this  
Followers 0

.htaccess clarification please


3 posts in this topic

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.