Help me understand how to reduce bandwidth

Discussion in 'HTML & Website Design' started by Agurus, Sep 30, 2010.

  1. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #21
    Check your logs / stats to make sure you really have to. No point if it isn't required.

    Edit:
    Wow. I just checked that graphic and it's still 1.5Mb.

    That's a ridiculous size that can easily be optimised to a fraction of that size and still retain it's quality. So the 1.5Mb image becomes 56k.
    http://imgur.com/6dazP.jpg
     
    Last edited: Oct 1, 2010
    mcfox, Oct 1, 2010 IP
  2. Namjies

    Namjies Peon

    Messages:
    315
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Well you need the rewrite engine on, as always:
    RewriteEngine on

    ~~~~~~~~

    You need to check the host requesting in the rewrite conditions. In this case, you specifify the condition to be that the referrer is not blank or one of your domains.

    It should be your allowed domain inside () followed by ?. the ? means that the content between the parentheses is optional, it can either be present or blank. The ! at the start is for "is not"

    Like this:
    RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$

    you could also fit the condition to allow multiple subdomains, or add rules to add additional domains, but that's another story.

    ~~~~~~~~

    And add a forbidden line afterward for when this condition is met. Choose the extensions you want blocked and separate them by the | symbol. Example:
    RewriteRule \.(gif|jpeg|png)$ - [F]

    or a redirect to another image of your choice
    RewriteRule \.(gif|jpeg|png)$ http://www.example.com/ad.png [R,NC]

    ~~~~~~~~

    Have fun
     
    Namjies, Oct 1, 2010 IP
  3. Kunalbhatia

    Kunalbhatia Active Member

    Messages:
    296
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #23
    Maybe start hosting files on a file sharing service? It doesn't make you seem very professional though.
     
    Kunalbhatia, Oct 1, 2010 IP
  4. Agurus

    Agurus Active Member

    Messages:
    252
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #24
    I was wondering if it would be beneficial to have my images on a photobucket pro account for my NEWS posts, that way I don't have to worry about bandwidth issues, image size problems etc etc..

    On a side note I have cut my bandwidth in almost half after changes:
    [​IMG]
     
    Agurus, Oct 1, 2010 IP
  5. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #25
    First convert all PNG to JPG and you will save a lot of traffic. For me as a visitor it is important to get a site loaded fast.
    If you put all your PNG's to photobucket the site still loads slow.
     
    CSM, Oct 2, 2010 IP
  6. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #26
    Plus Photobucket does not provide unlimited anything. They say they do but buried in the small print is the part where they don't.
     
    mcfox, Oct 2, 2010 IP