Jump to content

  • Log In with Google      Sign In   
  • Create Account


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
17 replies to this topic

#1 Tiso   Members   -  Reputation: 122

Like
Likes
Like

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 cyberben   Members   -  Reputation: 122

Like
Likes
Like

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

#3 Tiso   Members   -  Reputation: 122

Like
Likes
Like

Posted 21 May 2000 - 05:18 AM

Can I still use CGI scripts without my own server?

#4 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 21 May 2000 - 11:52 AM

Usually not. Your web host would have to allow you to run cgis.

#5 SiCrane   Moderators   -  Reputation: 9491

Like
Likes
Like

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.

#6 Ingenu   Members   -  Reputation: 826

Like
Likes
Like

Posted 21 May 2000 - 09:44 PM

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 *-

#7 Aldacron   GDNet+   -  Reputation: 3095

Like
Likes
Like

Posted 22 May 2000 - 01:32 AM

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.

#8 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

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 Tiso   Members   -  Reputation: 122

Like
Likes
Like

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 Altmann   Members   -  Reputation: 122

Like
Likes
Like

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.

#11 Tiso   Members   -  Reputation: 122

Like
Likes
Like

Posted 24 May 2000 - 10:19 AM

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

#12 Ratman   Members   -  Reputation: 181

Like
Likes
Like

Posted 24 May 2000 - 10:24 AM

Java servlets own, screw CGI

#13 Altmann   Members   -  Reputation: 122

Like
Likes
Like

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)

#14 MadKeithV   Moderators   -  Reputation: 971

Like
Likes
Like

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 ~

#15 Tiso   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 May 2000 - 10:10 AM

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.

#16 Altmann   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 May 2000 - 12:38 AM

Well, what else do you need ? Do we have to take your hand ?

--
===
Am I the keeper of my brother ?


#17 Tiso   Members   -  Reputation: 122

Like
Likes
Like

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

#18 Captain Goatse   Banned   -  Reputation: 100

Like
Likes
Like

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS