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!
Great response time and excellent service. I've been with AYK for nearly a year now and I couldn't be happier. If you're ready to make the step up from budget hosting to someone that can still work with you to spec out a server for your needs at an extremely competitive price, shoot these guys an email and see what they have available. You will not regret it. With datacenters located all ove r the globe they're certain to have something for you.. or they'll just build it
AYKSolutions is thee best hosting solution I have found in 10 years of searching. I'm very grateful of the services they provide. Such a vast variety to host whatever you desire at a great rate. The support team has always been great, always get a reply within 4 Hours of posting, usually way before 4H. I have a range of 1-10gbit machines and they've always kept up with premium standards. Networks they sell are premium, guaranteed. Thank you, AYK :)
AYK Solutions has provided me with a very cost effective hosting service with great uptime and lots of features. I would not hesitate to recommend them!