Htaccess question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GeXus
    Confirmed User
    • May 2003
    • 3320

    #1

    Htaccess question

    Okay, What do i put in my htaccess in order to prevent someone from hotlinking my images, also what do i put in order to prevent them from IMG SRC'ing my site as a whole..

    Thanks alot!
  • bww
    Registered User
    • Dec 2002
    • 3

    #2
    something like this.


    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http://www.yourdomainporno.com.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://yourdomainporno.com.*$ [NC]
    RewriteRule .*(gif|jpg|GIF|JPG|JPEG|jpeg)$ [F]

    Comment

    Working...