Activity Stream
48,167 MEMBERS
6476 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member
    Website's:
    RlsPorn.eu ReleasePorn.eu

    Default stop image hijacking (anti-hotlinking) Lighttpd

    Hey everyone on forum,

    my code is:

    Code: 
     #### stop image hijacking (anti-hotlinking)
    
     
     $HTTP["referer"] !~ "^(http://website\.com|http://www\.website\.com)" {
      
      url.access-deny = ( ".jpg", ".jpeg", ".png", ".gif", ".bmp" )
    
    }
    but i have a problem, this code is blocking all direct images on the webpage (is not blocking normal show images, only direct!!), and i would need allow in one folder to direct linking..

    i just want please about your help how i have to do it?

    thank you all for answer
    jessepure Reviewed by jessepure on . stop image hijacking (anti-hotlinking) Lighttpd Hey everyone on forum, my code is: #### stop image hijacking (anti-hotlinking) $HTTP !~ "^(http://website\.com|http://www\.website\.com)" { url.access-deny = ( ".jpg", ".jpeg", ".png", ".gif", ".bmp" ) Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    try
    adding

    PHP Code: 
    $HTTP["url"] =~ "^/images/" {

    (replace the image folder for which you need to block)
    before the
    url.access-deny
    Coding Horror Fan
    I don't read PM's frequently .

  4.     
    #3
    Member
    Website's:
    RlsPorn.eu ReleasePorn.eu
    thanks for answer

    i tried add your command and without any result..

    do you have any another solution?

    i need very much it.

    thanks so much

  5.     
    #4
    Member
    Website's:
    RlsPorn.eu ReleasePorn.eu
    ok, so i find out one thing, if i deleted
    Code: 
    $HTTP["referer"] !~ "^(http://website\.com|http://www\.website\.com)" {
    and added only
    Code: 
    $HTTP["url"] =~ "^/images/" {
    }  
    so content of whole website was enable with except folder "images"..but that folder images is blocking completly...does not work viewer of pictures..

    for example:

    all pictures i have in folder "images" which have to be blocking..

    direct link:
    Code: 
    http://www.website.com/images/8751395548712.jpg
    this is blocking, its good i want that.

    viewer link:
    Code: 
    http://www.website.com/viewer.php?img=8751395548712.jpg
    also this is blocking, its wrong for me, i need allow it.

    how to do it?

    thanks my mates so much.

  6.     
    #5
    Member
    Website's:
    RlsPorn.eu ReleasePorn.eu
    my code:

    Code: 
     #### stop image hijacking (anti-hotlinking)
    
        $HTTP["url"] =~ "^/images/" {
      
      url.access-deny = ( ".jpg", ".jpeg", ".png", ".gif", ".bmp" )
    
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Looking For Image Host Allows Adult & Hotlinking
    By DJboutit in forum File Host Discussion
    Replies: 13
    Last Post: 26th Sep 2011, 02:07 PM
  2. No image hotlinking - can't get it to work
    By Cyberbob in forum Webmaster Discussion
    Replies: 13
    Last Post: 10th Jul 2011, 05:43 PM
  3. reliable image host with hotlinking
    By incognito in forum Webmaster Discussion
    Replies: 4
    Last Post: 8th Sep 2010, 12:05 PM
  4. Stop hotlinking images?
    By sherwood in forum Server Management
    Replies: 3
    Last Post: 5th Sep 2009, 10:41 AM
  5. Prevent Image Hotlinking
    By Whoo in forum Webmaster Resources
    Replies: 6
    Last Post: 23rd Sep 2008, 05:14 PM

Tags for this Thread

BE SOCIAL