Image Hosting help.

Discussion in 'General Business' started by Faint, Mar 8, 2008.

  1. Faint

    Faint Well-Known Member

    Messages:
    663
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    145
    #21
    Then in the Terms of Service/Rules you say you don't allow them and monitor the uploaded images carefully.

    Can we please get back to the main topic now?
     
    Faint, Mar 9, 2008 IP
  2. stoli

    stoli Peon

    Messages:
    69
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #22
    You could do this with an htaccess rewrite rule. Then resize the image with JavaScript.

    Yes, this is quite straightforward.

    Save this as ".htaccess":
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteRule ([^/]*\.jpg)$ /files/thumbnails/$1
    
    Code (markup):
    Obviously change "mysite" to whatever your site is and change /files/thumbnails to whatever your thumbnails directory is.

    Drop the .htaccess file in your full size images directory.
     
    stoli, Mar 9, 2008 IP
    Faint likes this.
  3. daizisheng

    daizisheng Guest

    Messages:
    122
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    78
    #23
    aha, have a question, is image hosting service really big profitable?
    and is it resources costing?
     
    daizisheng, Mar 9, 2008 IP
  4. newzone

    newzone Well-Known Member

    Messages:
    2,865
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #24
    ask in the image hosting thread :)
     
    newzone, Mar 9, 2008 IP