Linux / UNIX Tech Support Forum
This is a discussion on Lighttpd Wildcard based hotlink prevention within the Web servers forums, part of the Mastering Servers category; Originally Posted by rockdalinux Try this Code: #### stop image hijacking (anti-hotlinking) $HTTP["referer"] =~ ".*BADDOMIN\.com.*" { url.access-deny = ( "jpg", ...
|
|||||||
| Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Would you be able to add a wild card to block all domains and then add a rule to allow just your site?
|
| Sponsored Links | ||
|
|
|
||||
|
First block all referer
Code:
$HTTP["referer"] =~ "*"{
url.access-deny = ( "" )
}
$HTTP["referer"] =~ ".*onedamdomain\.com.*" {
url.access-allow = ( "" )
}
__________________
Vivek Gite Linux Evangelist |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lighttpd Hotlink Prevention | Lizard King | Web servers | 1 | 02-05-2008 02:44 AM |
| Adsl router security in Lan based network | Wolverine | Computer Networking and Internet/broadband | 0 | 29-09-2007 12:26 AM |
| need help to install FreeBSD 6 series on my Intel based pc | sneezycrazyturtle | All about FreeBSD/OpenBSD/NetBSD | 1 | 22-02-2007 02:27 PM |
| Apache multiple IP based domains and one certificate | tom | All about FreeBSD/OpenBSD/NetBSD | 1 | 26-06-2006 07:23 PM |
| moving files based on size | kavi | Shell scripting | 2 | 11-11-2005 05:17 PM |