View Single Post
Old 04-28-2007, 03:13 PM   #1 (permalink)
Ethereal_Dragon
Ethereal_Dragon's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Bolingbrook, IL - USA

Posts: 3,604

Ethereal_Dragon will become famous soon enough

Send a message via AIM to Ethereal_Dragon Send a message via Yahoo to Ethereal_Dragon
Question Preventing Image hotlinking with lighttpd

Hello all, I don't often frequent this section, as I am not too familiar with these topics.

I have a DLink DNS-323 on my network (listed in sig), and I have put in a fun_plug file to gain telent access to the box, as well as add any new things that I might want to. I recently put lighttpd on it, and the webserver is functional. I am able to view the webpage from my LAN, and over the WAN.

In a nutshell, I would like to enable restrictions on the files hosted on my NAS, so that they aren't being leeched to other sites, and wasting bandwidth.

Here is the article I found that shows that it can be done with lighttpd.conf, but I am not sure how to impliment it.....
Lighttpd prevent image hotlinking or leeching or direct linking | nixCraft

You can PM me for the IP Address of the webpage... no Domain name yet...

Here are the contents of the lighttpd files... I am not too familiar with MUCH of what is in these.....
lighttpd.sh
Code:
#!/bin/sh

if [ -x "${BINDIR}/lighttpd" ]; then
    echo "Starting lighttpd... "
    ${BINDIR}/lighttpd -f ${ETCDIR}/lighttpd.conf
else
    echo "ERROR: lighttpd not found or not executable"
fi
lighttpd.conf text to follow....
__________________
Gaming Rig: - GIGABYTE GA-X38-DQ6, Intel Q9550 @ 2.83 Ghz, TRUE (MX-2 & 2 Scythe SFF21D),
Crucial Ballistix 4GB DDR 800, XFX Radeon HD 4870, SILVERSTONE ST70F,
4x Seagate 7200.11 ST3500320AS 500 GB, ASUS DRW-2014L1T, Antec 900
Dell 2709W - 27" Monitor & Sony SDM-HS95P - 19" Monitor
The NAS Box: D-Link DNS-323 & 2x Seagate 7200.10 ST3500630AS 500GB - JBOD



| My Antec 900 Build Log | Project Pink | Operation Home Run |
| General Forum Rules | Networking FAQs & Tutorials | Hardware Tutorials |

Last edited by Ethereal_Dragon; 04-28-2007 at 03:37 PM. Reason: changed quote to code for easier reading
Ethereal_Dragon is offline