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!
The most caring provider AYKSolutions is a reliable hosting and decicated server probider with good uptimes etc etc, which nowadays is a must for any copany in the hosting industry, But what makes them stand out from cowd - is there sincere care for their customers. AYK stuff is always asking you about problems you have and doing their best to solve the problems and help yo ur business to grow. Best support ever!
You can trust your business with AYKsolutions After a horrible experience with my prior host that left me with over 14 hours of downtime, AYKSolutions came in, took care of the transfer completely and made my life easier. When they say their servers are semi-managed, it means they take care of more then most managed server hosting companies. Average ticket response time? 2-5 minutes. One time i n the middle of the night it took 30 minutes. Problems that I create are fixed immediately and they take care of their customers. Artyom is the owner, who is somehow capable of not sleeping. He's always there to take care of everything with a personal touch. 3 AM on a Saturday? Not an issue for AYKSolutions. Trust me, I'm very thorough in researching a company. When it comes to business, you can never be too careful. I trust my business with AYKSolutions