• 0

.htaccess


Question

ampersand

I'm using this code in my .htaccess to prevent other to hotlink, but when I use this, I can't even see the pictures on my own server, is there something wrong here, or should I add some more code?

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?librarium-online.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.librarium-online.com/nasty.gif [R,L]

Thanks in advance

ampersand

Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
NeoMayhem

Add the URL with www and no www sepertatly, and add the servers IP that it is hosted on ;)

Link to post
Share on other sites
  • 0
ampersand

thanks :) :)

Link to post
Share on other sites
  • 0
MitchShrader

Whats librarium online? I want some. Thanks.

Link to post
Share on other sites
  • 0
ampersand

its a community for warhammer/tabletop players, miniatures/modeling and painting etc... we have closed the site temporarily because of an error with the sql server...

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
  • Recently Browsing   0 members

    No registered users viewing this page.