Important alert: (current site time 7/16/2013 3:51:12 AM EDT)
 

winzip icon

Personal Webserver

Email
Submitted on: 2/27/2000
By: James Simmons 
Level: Advanced
User Rating: By 27 Users
Compatibility: VB 5.0, VB 6.0
Views: 28544
 
     This is the most advanced webserver on Planet Source Code! This is an update to the webserver programmed by Pat (and updated by Joox). It now supports CGI scripts! The ability of banning certain unwanted visitors! The ability to temporarily the server. Unlimited file download size! New security features! Many new misc. features and a new GUI to go along with them! I hope this code goes to good use! Please report any bugs (I want feedback!!!).

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
2/28/2000 12:29:52 AMRob Wise

truly one of the greatest codes vb codes
on this site. There should be a rating higher
then excellent for this code
(If this comment was disrespectful, please report it.)

 
2/28/2000 2:09:11 AMDbayliss

I have followed your project from the start and think it is awsome, you have developed a wonderful package!!!
(If this comment was disrespectful, please report it.)

 
2/28/2000 7:44:49 AMNate

VERY WELL DONE!!!! This is truly superior code! This program has helped me out immensely. Thank You :-)
(If this comment was disrespectful, please report it.)

 
2/28/2000 9:43:38 AMeelko

Well, it looks allright,but when you really try it, with a website, all graphics are not displayed. Also, how do you handle security issues?
(If this comment was disrespectful, please report it.)

 
2/28/2000 10:05:54 AMomarswan

Hi, First I must say great job. So far the only problem that I have with it is that it works well with a single page but I can't use it to load a web site that has more than one frame (top_banner, left_menu & main_page). Do you know how to fix this prolem?

Thank,
Keep up the good Job.
GOD BLESS YOU
(If this comment was disrespectful, please report it.)

 
2/28/2000 5:51:24 PMJames

The frames problem is one of the only bugs in this program. I'm working on that issue now.
(If this comment was disrespectful, please report it.)

 
2/28/2000 8:17:27 PMraz

man this truly is awesome code! i had seen your previous releases, and was hoping for a new release. well, it's here and it kicks @ss!!!!
(If this comment was disrespectful, please report it.)

 
2/29/2000 9:07:43 AMMarcelo

Top code, keep going. Soon with VB7 you will be able to make it multi-threaded & improve performance.
(If this comment was disrespectful, please report it.)

 
3/3/2000 5:18:26 AMAnton D

The one proplem, which I have, "WHERE I CAN FIND COMPUTER FOR THIS APP"??
(If this comment was disrespectful, please report it.)

 
3/11/2000 10:54:56 PMraz

hey man i cant get any pictures to work...this is supposed to work with pics, right? i really need help...
(If this comment was disrespectful, please report it.)

 
3/12/2000 1:46:36 PMsimsoftware

Try this:
http://$ip/enter.gif
Where enter.gif is any graphic you want of any type.
(If this comment was disrespectful, please report it.)

 
3/12/2000 1:48:49 PMsimsoftware

Sorry! In the above submission I forgot to add that this needs to be placed in an image tag
(If this comment was disrespectful, please report it.)

 
3/13/2000 11:56:00 AMAlex Ionescu

You can do multi-threading with VB6 too you know...
(If this comment was disrespectful, please report it.)

 
3/23/2000 9:21:23 AMDean Kavanagh

I need to be able to interpret requests from outside locations.What I need is the ability to turn a long URI like:http://www.whatever.com/request?putmehere.sothatdatacanbestoredonthewebserverand then create webpages on the fly that cater for this. Any Ideas?
(If this comment was disrespectful, please report it.)

 
3/23/2000 11:06:21 PMraz

yo i tried the thing for the pics but it didnt work...
(If this comment was disrespectful, please report it.)

 
4/30/2000 8:56:30 AMMark

Theres just one problem, the webserver does not process .htpassword request, like when there is an .htpassword file in a folder, a web browser is displayed a user
(If this comment was disrespectful, please report it.)

 
4/30/2000 8:57:09 AMMark

Theres just one problem, the webserver does not process .htpassword request, like when there is an .htpassword file in a folder, a web browser is displayed a user & id and pw to prompt for the user to fill out and the server to verify, but the program for some reason does not support this, please fix it in your next ver, thanks
(If this comment was disrespectful, please report it.)

 
5/1/2000 12:16:14 PMRui Jiang

I can only see half of the OK button on Personal Webserver From when I run the program. I clicked on the OK button, the form disappeared, but the program was still running. I clicked on the End Program icon on toolbar, the illegal operation message appeared.
(If this comment was disrespectful, please report it.)

 
5/1/2000 12:20:14 PMRui Jiang

I can see only half of the OK button on Personal Webserver form when I run the program. I clicked on the OK button, the form disappeared, but the program was still running. I clicked on the End Program icon on the toolbar, the illegal operation message appeared.
(If this comment was disrespectful, please report it.)

 
5/2/2000 10:33:28 AMMartinV

Cool thing
(If this comment was disrespectful, please report it.)

 
7/28/2000 8:42:18 PMdanny2055

this doesnt seem to support cgi scripts... any ideas? thanks
(If this comment was disrespectful, please report it.)

 
8/4/2000 11:02:14 PMDanny2055

this doesnt support cgi scripts or any of the NEW features supposedly here
(If this comment was disrespectful, please report it.)

 
10/1/2000 5:15:14 AMPsyVision

The reason you got the Illegal Operation when u closed it from the startbar is because u need to stop the server then exit the program. Nice Code Though
(If this comment was disrespectful, please report it.)

 
12/8/2000 8:38:13 PMUltraNorn

THIS IS SOOO EXCELLENT!!
But it can be improved.
Fix the fact that graphics don't display and fix the fact that the page doesn't always load.
(If this comment was disrespectful, please report it.)

 
12/8/2000 8:38:41 PMUltraNorn

THIS IS SOOO EXCELLENT!!
But it can be improved.
Fix the fact that graphics don't display and fix the fact that the page doesn't always load.
P.S.
E-mail me at unorn@yahoo.com when you do it!
(If this comment was disrespectful, please report it.)

 
12/10/2000 3:21:43 PMCode X

The downloads don't seem to work!! I tryed the download.zip but it only gave me 100 bytes not 151 bytes. I also tryed a 3,500kb file it only gave me about 326 BYTES!! Help me please!!
(If this comment was disrespectful, please report it.)

 
4/13/2001 11:53:33 PMRESPECT

You shouldn't say it supports CGI because infact it doesn't since it doesn't use Perl.exe or any CGI/Perl inturpretor. But YOU do have the way to code a VB CGI type like language, like you did with the guestbook.
(If this comment was disrespectful, please report it.)

 
5/21/2001 6:56:40 AMKayhan Tanriseven

Really nice code you have!! Would you let me update it with own developed security support....I will give you credit...ok?
(If this comment was disrespectful, please report it.)

 
6/9/2001 7:10:29 PMSimon

Ok it work but...

try it http://IP/.
http://IP///
http://IP/../....../......./...............

the server crash

And try it (with a little vb winsock app) to have more than 100 connections (interval of 3 second, maybe more) and yo got the nice Blue Screen System Fatal Error on the server computer...

Try to make safe your server before trying to sell it for the security of our pay :)

Good app but with any security, oups... the log, ok ok you can view how hack you:)
(i speak french, sorry for my english :)

(If this comment was disrespectful, please report it.)

 
8/14/2001 3:53:18 AMGusto Rulez

Hey..yea its a good code...but downloading files dont work and images dont work..whats wrong?
(If this comment was disrespectful, please report it.)

 
9/20/2001 7:27:46 PMtom f.

i couldnt get cgi to work.
(If this comment was disrespectful, please report it.)

 
2/20/2002 5:36:17 PMW. LeRoy

Yes I agree! Competition! :)
(If this comment was disrespectful, please report it.)

 
2/20/2002 6:45:35 PMTrustLess

Great Code,
Hope You Fix The Security Problems That Simon Mentioned, Once Those Our Fixed, You Got YourSelf A Great All Around WebServer. Great Job.
(If this comment was disrespectful, please report it.)

 
6/24/2002 8:23:57 AMMurry Page

When i try running exe I get message "error loading Winsock" I am using windows nt 4.0 sp6a workstation. any Ideas? thanks

(If this comment was disrespectful, please report it.)

 
7/31/2002 11:25:31 PMcory via

How exactly do you use the CGI capabilities, and how do you block certain IP's from accessing the web server?
(If this comment was disrespectful, please report it.)

 
8/18/2002 11:20:08 AMgordon liao

download file is not working,
please help me to make it work
(If this comment was disrespectful, please report it.)

 
8/24/2002 10:46:32 PMspeedy5

Hey! Thanks for submitting this code. It works great but it's gotta be the second worst formatted code ever written, lol! Indent your code PLEASE. It'll help a lot. Also, I think you missed the http headers for returning a file.

Based on your code, I have begun making my own web server. You will be in my special thanks. I have a question: My server works on my computer using my ip address but not on other computers. Do you know why? Any help would be appreciated.

I would vote 5 stars but this is an old code and you won already... ;)
(If this comment was disrespectful, please report it.)

 
9/21/2002 1:42:34 PM

oh it crash my vb6
(If this comment was disrespectful, please report it.)

 
10/3/2002 8:58:40 PM

what is visual basics
(If this comment was disrespectful, please report it.)

 
1/30/2003 11:53:20 AMLefteris Eleftheriades

How can I use a name instead of my ip as the internet address?
(If this comment was disrespectful, please report it.)

 
2/25/2004 5:57:40 PM

forget the CGI, forget the guestbook, etc... features.
Just get the file serving and directory listing working with multiple connections at the same time. All other features can be added later.
(If this comment was disrespectful, please report it.)

 
8/13/2004 9:00:44 AM

Hello mr Webserver man. i know you don't reply and this may sound harsh but im speaker for every1. FORGET THE CGI |
===========

to everyone else that cannot get all of the file to download.. find the code which says

(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.