site using to much bandwith

  • BartAfterDark
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 21, 2004
  • Posts: 120
  • Status: Offline

Post November 28th, 2004, 3:25 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 28th, 2004, 3:25 am

  • KCamel
  • Beginner
  • Beginner
  • User avatar
  • Joined: Nov 27, 2004
  • Posts: 39
  • Loc: Kuwait
  • Status: Offline

Post November 28th, 2004, 3:54 am

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
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post November 28th, 2004, 6:16 am

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.
Strong with this one, the sudo is.
  • BartAfterDark
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 21, 2004
  • Posts: 120
  • Status: Offline

Post November 28th, 2004, 6:50 am

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
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post November 28th, 2004, 9:49 am

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.
UNFLUX.FOTO
  • Rat
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 25, 2004
  • Posts: 1190
  • Loc: desk
  • Status: Offline

Post November 28th, 2004, 10:18 am

//What would the code be for the .htaccess file?
  • madmonk
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: May 04, 2004
  • Posts: 2115
  • Loc: australia
  • Status: Offline

Post November 29th, 2004, 12:23 am

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


Lol. yeah but you still got 3 gb left...
Tattoos Gallery
  • BartAfterDark
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 21, 2004
  • Posts: 120
  • Status: Offline

Post November 29th, 2004, 4:02 am

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

Post November 29th, 2004, 4:42 am

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


Never mind. I found out what I needed.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post November 29th, 2004, 9:02 am

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.FOTO
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post November 29th, 2004, 9:08 am

//moved to hosting
UNFLUX.FOTO
  • BartAfterDark
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 21, 2004
  • Posts: 120
  • Status: Offline

Post November 30th, 2004, 3:19 am

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
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post November 30th, 2004, 5:29 am

No, if you add the htaccess file, it will prevent people from hotlinking the videos to there sites etc...
  • BartAfterDark
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 21, 2004
  • Posts: 120
  • Status: Offline

Post December 1st, 2004, 3:25 am

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
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post December 1st, 2004, 12:15 pm

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.
UNFLUX.FOTO
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 1st, 2004, 12:15 pm

Post Information

  • Total Posts in this topic: 27 posts
  • Users browsing this forum: No registered users and 22 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.