site using to much bandwith

  • BartAfterDark
  • Graduate
  • Graduate
  • BartAfterDark
  • Posts: 120

Post 3+ Months Ago

hey
I'm beginning to get bandwith problems with my site. It used 47g out of my 50gb bandwith. This happend after I added some small videos to the site (aprox. 1mb each)
Should I make in a members only secktion (the videos) So users have to register (free) before they can view them or what should I do ? :-/

- bart
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • KCamel
  • Beginner
  • Beginner
  • User avatar
  • Posts: 39
  • Loc: Kuwait

Post 3+ Months Ago

I dont think moving the file to member area for free registeration will use less bandwidth you need to request more bandwidth or add the file in another place where users can download without using your bandwidth
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Video will always cause a bandwidth spike, making it members only will slow down random consumption a little. Take a look at your logs & determine how many of the hits are comming from external sources, if you have that taken care of the only other options are getting more bandwidth & making the videos pay for themselves in some way, shape or form. Or.. dropping the videos.
  • BartAfterDark
  • Graduate
  • Graduate
  • BartAfterDark
  • Posts: 120

Post 3+ Months Ago

It is does random hits that are the problem.
Many people post links to my site in forums and stuff like that.

joebert wrote:
Video will always cause a bandwidth spike, making it members only will slow down random consumption a little. Take a look at your logs & determine how many of the hits are comming from external sources, if you have that taken care of the only other options are getting more bandwidth & making the videos pay for themselves in some way, shape or form. Or.. dropping the videos.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

i would also recommend using htaccess to block hotlinkers as videos tend to be ripped more often. You probably should look at your referrer stats and be sure you don't have a few forums or emails or newsgroups linking directly to your videos. Doing this alone would save you bandwidth, and as joe said, a members section is really ineffective with this sort of thing.
  • Rat
  • Guru
  • Guru
  • User avatar
  • Posts: 1190
  • Loc: desk

Post 3+ Months Ago

//What would the code be for the .htaccess file?
  • madmonk
  • Mastermind
  • Mastermind
  • madmonk
  • Posts: 2115
  • Loc: australia

Post 3+ Months Ago

Quote:
It used 47g out of my 50gb bandwith.


Lol. yeah but you still got 3 gb left...
  • BartAfterDark
  • Graduate
  • Graduate
  • BartAfterDark
  • Posts: 120

Post 3+ Months Ago

haven't got any bandwih left :(
So now my site is dead for 3 days :'-(
  • Rat
  • Guru
  • Guru
  • User avatar
  • Posts: 1190
  • Loc: desk

Post 3+ Months Ago

Rat wrote:
//What would the code be for the .htaccess file?


Never mind. I found out what I needed.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

open notepad with a new, blank file. paste this in:
Code: [ Select ]
Options FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.domain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com [NC]
RewriteRule /* http://www.domain.com [R,L]
  1. Options FollowSymLinks
  2. RewriteEngine On
  3. RewriteCond %{HTTP_REFERER} !^http://www.domain.com [NC]
  4. RewriteCond %{HTTP_REFERER} !^http://domain.com [NC]
  5. RewriteRule /* http://www.domain.com [R,L]

change domain.com to the domain you want to allow. Save the file.

When the save window comes up, click the bottom drop down menu and change it to 'All Files.' then, in the name field, type .htaccess. Make sure that .txt is not on the end of it. Save it where you want, and upload to the directory you want to protect. DO NOT PUT IT IN THE ROOT. Make sure you upload it as an ascii file and not binary as well.

Let me know how that works.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

//moved to hosting
  • BartAfterDark
  • Graduate
  • Graduate
  • BartAfterDark
  • Posts: 120

Post 3+ Months Ago

UNFLUX wrote:
open notepad with a new, blank file. paste this in:
Code: [ Select ]
Options FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.domain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com [NC]
RewriteRule /* http://www.domain.com [R,L]
  1. Options FollowSymLinks
  2. RewriteEngine On
  3. RewriteCond %{HTTP_REFERER} !^http://www.domain.com [NC]
  4. RewriteCond %{HTTP_REFERER} !^http://domain.com [NC]
  5. RewriteRule /* http://www.domain.com [R,L]

change domain.com to the domain you want to allow. Save the file.

When the save window comes up, click the bottom drop down menu and change it to 'All Files.' then, in the name field, type .htaccess. Make sure that .txt is not on the end of it. Save it where you want, and upload to the directory you want to protect. DO NOT PUT IT IN THE ROOT. Make sure you upload it as an ascii file and not binary as well.

Let me know how that works.


So if I added this to my htaccess then people can only get access to my site, if they typed my domain in the address bar?
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

No, if you add the htaccess file, it will prevent people from hotlinking the videos to there sites etc...
  • BartAfterDark
  • Graduate
  • Graduate
  • BartAfterDark
  • Posts: 120

Post 3+ Months Ago

I allready did some hotlinking protection. so I don't think that it would be the problem :-/
one of the movies has been shown 21473 times hehe :P but it's only 387.9 KB hehe.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

my point was that what if half of those 21473 views were coming from other sites directly linking to the video? don't you think that would be a huge difference in your outgoing bandwidth if you could cut that off? using manual htaccess is the most effective way to prevent hotlinking. If you used cpanel to set it up, it may not work properly unfortunately.
  • L-Man
  • Novice
  • Novice
  • User avatar
  • Posts: 32
  • Loc: Poland

Post 3+ Months Ago

KCamel wrote:
I dont think moving the file to member area for free registeration will use less bandwidth you need to request more bandwidth or add the file in another place where users can download without using your bandwidth

If no one is downloading the pic.s they will not use up your bandwidth so if he makes it exclusive to members this surely will reduce the access to it and then the bandwidth used up
  • madmonk
  • Mastermind
  • Mastermind
  • madmonk
  • Posts: 2115
  • Loc: australia

Post 3+ Months Ago

your damn right! jsut reduce the access to the files and your bandwidth will be saved.
  • BartAfterDark
  • Graduate
  • Graduate
  • BartAfterDark
  • Posts: 120

Post 3+ Months Ago

don't know if my hotlink protection works.
How many can see that picture?

Image
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

broken link to me
  • Uncensored-Hosting
  • Proficient
  • Proficient
  • User avatar
  • Posts: 383
  • Loc: Los Angeles

Post 3+ Months Ago

It's working the link is broken. Why would using cPanel to set up the hotlinking protection cause it to work improperly?

UNFLUX wrote:
my point was that what if half of those 21473 views were coming from other sites directly linking to the video? don't you think that would be a huge difference in your outgoing bandwidth if you could cut that off? using manual htaccess is the most effective way to prevent hotlinking. If you used cpanel to set it up, it may not work properly unfortunately.
  • BartAfterDark
  • Graduate
  • Graduate
  • BartAfterDark
  • Posts: 120

Post 3+ Months Ago

I just checked the accesslog and a lot of sites are direct linking to some of my file.
Think it would be easiest to rename the video files. So they get the 404 error
  • Uncensored-Hosting
  • Proficient
  • Proficient
  • User avatar
  • Posts: 383
  • Loc: Los Angeles

Post 3+ Months Ago

Have you confirmed the entries you are seeing in the access log are since you added the hotlink protection? What apache code are they receivng now?

BartAfterDark wrote:
I just checked the accesslog and a lot of sites are direct linking to some of my file.
Think it would be easiest to rename the video files. So they get the 404 error
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

cPanel's "Hotlink Protection" has caused many problems with scripts and programs and custom setups for sites, because it blankets url's improperly. We have had several cases where people had applied cPanel's version and their sites were inaccessible to anyone, even themselves. It's just a reflex now to recommend using manual htaccess instead, being that every case was cleared up doing so.
  • Uncensored-Hosting
  • Proficient
  • Proficient
  • User avatar
  • Posts: 383
  • Loc: Los Angeles

Post 3+ Months Ago

I do recall cPanel places the code in the root .htaccess. However instructing the customer to use it to generate the code and manually place it in the desired sub-directory has never caused a problem. I have not tested it recently to see if they have corrected that bug.


UNFLUX wrote:
cPanel's "Hotlink Protection" has caused many problems with scripts and programs and custom setups for sites, because it blankets url's improperly. We have had several cases where people had applied cPanel's version and their sites were inaccessible to anyone, even themselves. It's just a reflex now to recommend using manual htaccess instead, being that every case was cleared up doing so.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

yeah that sounds about right, I think that's more of the issue anyway, is the placement by cpanel. I just found it better to educate and teach rather than to give the easy way out. at least if nothing else, they learned something.
  • BartAfterDark
  • Graduate
  • Graduate
  • BartAfterDark
  • Posts: 120

Post 3+ Months Ago

is there a way so It shows a diffrent picture. Like something. Stop stealing our bandwith ? (when someone hotlinks to a picture on a other site)
  • Uncensored-Hosting
  • Proficient
  • Proficient
  • User avatar
  • Posts: 383
  • Loc: Los Angeles

Post 3+ Months Ago

Yes there is you can google for some examples I'm sure.

BartAfterDark wrote:
is there a way so It shows a diffrent picture. Like something. Stop stealing our bandwith ? (when someone hotlinks to a picture on a other site)

Post Information

  • Total Posts in this topic: 27 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.