Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


How do I made an image hosting website?

  • Please log in to reply
2 replies to this topic

#1 PoweredByGoogle


  • Members
  • 192 posts
  • Local time:11:19 PM

Posted 30 June 2009 - 10:36 PM

Hi, I own a website domain and pay for reseller hosting.

I want to start an extra domain on my hosting account when you go to it you can upload images.
You upload the image and it gives you a link thats all it needs to do.

Like if I uploaded


It wold give me a random link like:

www.freeimagehost blah blah.com/sd45skfh49s

Anyone know how to do this?

I also want to be able to view images that have been uploaded and delete them if they do not meet my rules, like if they are bad images. I assume this can be done if the images are stored in a folder on the ftp server i can just view them in the folder?

BC AdBot (Login to Remove)


#2 groovicus


  • Security Colleague
  • 9,963 posts
  • Gender:Male
  • Location:Centerville, SD
  • Local time:10:19 PM

Posted 30 June 2009 - 10:43 PM

First, how are you going to limit use of bandwidth? I know for a fact that if you start using too much bandwidth, your ISP is going to cut you off, unless of course you agree to additional charges. You might want to check with your ISP and see where that threshold lies, and check into expenses. If everything is cool there, then it is a matter of breaking down the project into small pieces.

#3 Romeo29


    Learning To Bleep

  • Members
  • 3,194 posts
  • Gender:Not Telling
  • Location:
  • Local time:11:19 PM

Posted 01 July 2009 - 09:14 AM

You need an SQL server like mySQL

whenever someone uploads file, generate random name, rename it and add information of link, filename, tags, time of upload, user who uploaded etc, ip address of user in sql database. When someone accesses the file, it should be looked up in the database and link should be redirected. You can also keep count how many times a file has been viewed and limit bandwidth accordingly. You can delete the file after certain number of days it was uploaded. Its a game of how you utilize SQL.

for example someone uploads 1.jpg
u generate random unique name bbcder.jpg (checking for duplicates in sql db)
put file as hxxp://files.imagehost.com/db1/bbcder.jpg
tell user link is hxxp://www.imagehost.com/fetch.php?file=bbcder.jpg

PHP and mySQL are perfect for this. But you may also want ASP.net and MS SQL server

Edit: neutralized fake links

Edited by Romeo29, 01 July 2009 - 09:14 AM.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users