• Advertisement

Archived

This topic is now archived and is closed to further replies.

[java] Can or can not, that is the question.

This topic is 6445 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
Can I still use CGI scripts without my own server?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Usually not. Your web host would have to allow you to run cgis.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
mhh..
I''m using JAVA everyday to create such things !
The fact is that I''m a web dev and I use JAVA servlets instead of incsecured PHP/CGI/PERL...

So you can.




-* Sounds, music and story makes the difference between good and great games *-

Share this post


Link to post
Share on other sites
Since your website is for your company you could host it for free at Hypermart. They allow you to use custom cgi scripts and set up file permissions & htaccess files for your directories.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
right, but Java servlets have the same problem as cgi if not worse because you need a servlet engine to run them

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Okay, thanks. With that said, how hard would it be for me to make it? (I''ve never worked with Java)

Share this post


Link to post
Share on other sites
"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)

Share this post


Link to post
Share on other sites
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 ~

Share this post


Link to post
Share on other sites
I already have my site up and everything, I don''t want to go through all the work of transfering files and crap. All I want is a password requirement section.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement