Topic awaiting preservation: bandwidth limitation script |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-06-2003 20:15
ok, my site is a gallery site for many peoples work, including movie projects. My new sponsor has given me a 5GB per month limit on bandwidth, after which I will need to pay for every MB over. I dislike this and have asked them if they could just cap it so that a 404 type page is displayed saying my bandwidth has been exceeded, they said no. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 05-06-2003 21:00
What I would do is just put all your big bandwidth hogging projects on one page (or a few pages) and then write a small php script for the page that checks your usage and then either display's or doesn't display the page based on where you are at for the month. |
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-06-2003 21:34
what file would i need to parse to get my usage stats? i asked a guy about using raw log files if i have access to them and he laughed at me and said my server would fry. |
Paranoid (IV) Inmate From: California |
posted 05-07-2003 03:30
Hi smonkey, |
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-07-2003 19:31
cheers charlie/piper, |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 05-07-2003 20:44
hey hey hey, we can't do all the work for you! |
Paranoid (IV) Inmate From: California |
posted 05-07-2003 21:02
Like bitdamaged said, we can't do it for you. He did post some very useful links to help you get started. If you give it a try and get stumped, post your code here and people will help. Also, if you post a few lines from your access log, I will help you out with a regex to break up the parts. |
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-08-2003 01:01
It was worth a shot. |
Paranoid (IV) Inmate From: California |
posted 05-08-2003 02:45
quote:
|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 05-08-2003 03:23
bit, this link fucking rocks! |