Allows you to search a variety of questions and answers
This was done for one of our customers who used lighttpd to stream their videos. The problem was other users were directly downloading the content from the website, which is essentially considered leeching/hotlinking and in turn using up our client's bandwidth. To prevent this, we followed these steps:
1. Find the access IP that shows up in your lighttpd access_log (typically in /var/log/lighttpd). The IP will most likely be the main IP of your server/VPS.
2. With that IP, add the following code to your lighttpd.conf file:
Code:
$HTTP["remoteip"] == "1.1.1.1" { $HTTP["url"] =~ "^/videoimagefolder/" { url.access-deny = ( ".flv, .jpg, .gif" ) } }
Replace the IP with the IP you find your logs, the folder with the folder where your videos, images or whatever the content may be are located. Lastly, put in the extension of the files you'd like to prevent access to. So, if you only have flv files, just put ".flv" in there.
That should do it!
Without doubt the most professional and friendly support team i have ever experienced. These guys are really way above any other company i have worked with in the past.
We're Happy with our 1 Gigabit Server AYK Solutions! AYK Solutions provides all our back-end server infrastructure for our video streaming sites which burn up about 200 GB of data every day. I have had nothing less then 1 MB/second downloads from all the servers that I have had from them. Their technical support saved me several times, and their tech support is 24/7 and responsive. I currently have a Quad Xeon on a 1 gigE port for WAY LESS then any other dedicated server provider
Great prices and service! Truly is painless, professional and polite (That's their slogan).