[java] Can or can not, that is the question.
Started by Tiso, May 20 2000 10:20 AM
17 replies to this topic
#1 Members - Reputation: 122
Posted 20 May 2000 - 10:20 AM
I was wondering if Java can make barriers on a web site, like it requires a password to enter? I''m really interested in getting someething like that for my company so I can post the "member only" stuff and not worry about someone getting in and stealing our idea. There is one site that has this that kind of gave me the idea for it, and it is:
www.hero6.com
If I could get something like that, man would that make things easier. Any help is appreciated.
Sponsor:
#2 Members - Reputation: 122
Posted 20 May 2000 - 10:27 AM
They''re using a CGI script not java. What you really want is to have your own web server. Then you can set privilages on each file and have your on cgi-bin and stuff. Some internet providers will let you do that with your web space, but most won''t.
See ya,
Ben
See ya,
Ben
#4 Anonymous Poster_Anonymous Poster_* Guests - Reputation:
Posted 21 May 2000 - 11:52 AM
Usually not. Your web host would have to allow you to run cgis.
#5 Moderators - Reputation: 6662
Posted 21 May 2000 - 04:36 PM
It is possible to create an applet that will load a page if and only if a certain password is given. (Or some other criterea is met.) However, it''s restricted to loading files that the browser already has access to; once the page is loaded the user can return to the page, bypassing the applet, by typing in the URL or bookmarking, etc.
#8 Anonymous Poster_Anonymous Poster_* Guests - Reputation:
Posted 22 May 2000 - 05:35 AM
right, but Java servlets have the same problem as cgi if not worse because you need a servlet engine to run them
#9 Members - Reputation: 122
Posted 22 May 2000 - 09:13 AM
Okay, so I can make such a thing with java? Is that right? Somebody mentioned I have to have something called a servlet to use it? I''m confused. What do I need and what do I need to know to make a barrier like that? Even if the barrier is weak?
#10 Members - Reputation: 122
Posted 23 May 2000 - 07:02 AM
With an applet, you can :
- encrypt the web page into a file
- check for a password
- create a temporary file on the user''s HD (requires jdk/jre 1.2+)
- uncrypt the file into the temporary file
- transform the File into a URL
- give the URL to the browser through java-script [I am not sure on this one]
That''s it.
- encrypt the web page into a file
- check for a password
- create a temporary file on the user''s HD (requires jdk/jre 1.2+)
- uncrypt the file into the temporary file
- transform the File into a URL
- give the URL to the browser through java-script [I am not sure on this one]
That''s it.
#13 Members - Reputation: 122
Posted 24 May 2000 - 10:01 PM
"With that said" :
- encrypt the web page into a file
>>2 hours, once you start knowing a little bit of Java
- check for a password
>>trivial
- create a temporary file on the user''s HD (requires jdk/jre 1.2+)
>>File.createTemp() : 8 seconds
- uncrypt the file into the temporary file
>>included in the "encrypt" task
- transform the File into a URL
>>File.toURL() : 8 seconds
- give the URL to the browser through java-script [I am not sure on this one]
>>No idea, but probably rather easy [I have never done java-script)
- encrypt the web page into a file
>>2 hours, once you start knowing a little bit of Java
- check for a password
>>trivial
- create a temporary file on the user''s HD (requires jdk/jre 1.2+)
>>File.createTemp() : 8 seconds
- uncrypt the file into the temporary file
>>included in the "encrypt" task
- transform the File into a URL
>>File.toURL() : 8 seconds
- give the URL to the browser through java-script [I am not sure on this one]
>>No idea, but probably rather easy [I have never done java-script)
#14 Moderators - Reputation: 960
Posted 24 May 2000 - 10:09 PM
www.virtualave.net also has free CGI script hosting, and it works quite well.
I prefer CGI to Java, because it generally seems to take less setup. Not that I''m an expert or anything, I just played with Perl for the hell of it, it seemed interesting.
#pragma DWIM // Do What I Mean!
~ Mad Keith ~
I prefer CGI to Java, because it generally seems to take less setup. Not that I''m an expert or anything, I just played with Perl for the hell of it, it seemed interesting.
#pragma DWIM // Do What I Mean!
~ Mad Keith ~
#17 Members - Reputation: 122
Posted 28 May 2000 - 06:07 AM
I just want to know what I need to know, how long will it take, and so forth. But, I'm a beginner and don't understand the complex wording, so english please.
.........................................................
http://www.crosswinds.net/~gaurdianangel
Edited by - Tiso on May 28, 2000 11:34:15 PM
.........................................................
http://www.crosswinds.net/~gaurdianangel
Edited by - Tiso on May 28, 2000 11:34:15 PM
#18 Banned - Reputation: 100
Posted 28 May 2000 - 06:20 AM
I think you understood what he said, but anyway, if I got it right he said that DO WE have to create barrier for you AND proviede even free web server + new computer.
By the way, what happened to this board? It''s tiny line in the middle of my screen. Feels like I were watching widescreen porn from unwided pal-tv...
Time comes, time goes and I only am.
By the way, what happened to this board? It''s tiny line in the middle of my screen. Feels like I were watching widescreen porn from unwided pal-tv...
Time comes, time goes and I only am.






