User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,765 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,671 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3309 | Replies: 6
Reply
Join Date: Sep 2005
Posts: 7
Reputation: jakeday is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jakeday jakeday is offline Offline
Newbie Poster

website password protection

  #1  
Sep 26th, 2005
Hi all, I'm very, very new to Java / Javascript, but have a couple of years experience with other programming languages. - (inexperience may explain a novicey question

However, I wanted to learn a web-enabled language to capture data from certain websites to build systems for my "sports-betting" hobby.

I've only picked up Java about a week ago, but i've managed to build a couple of programs that do what i need. However, certain sites require you to "log in" before you can access pages. So whilst I can see this information myself, my little java program cannot.

For example the racing post website (www.racingpost.co.uk) i have a username: nutricomms and password: vinery (its free to register, so no real need to hide the details). I can't get my little program to access these pages.

I have no idea where to start in looking into this problem and wondered if
a) this is the correct place to ask?
b) if anyone can give me any pointers on how to solve my little problem

any help will be gratefully received.

thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2005
Posts: 7
Reputation: jakeday is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jakeday jakeday is offline Offline
Newbie Poster

Re: website password protection

  #2  
Sep 28th, 2005
Guys,

could anyone please indicate whether this is even in the correct thread? or should i write it in the "java" thread?

thanks

jake
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: website password protection

  #3  
Sep 28th, 2005
Jake,

That depends really on what language you're using. You mention both Java and JavaScript. They aren't interchangeable, and are indeed very different languages.

Plus, I'm not clear on your question. No language will let you "access" a password protected page. What exactly are you trying to do, and with which programming language?
Reply With Quote  
Join Date: Aug 2004
Posts: 49
Reputation: felgall is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
felgall felgall is offline Offline
Light Poster

Re: website password protection

  #4  
Sep 29th, 2005
Javascript is definitely NOT the way to go to password protect pages. Since the Javascript source is available for your visitors to read it is not hard to reverse engineer the code to work out what the password must be with most such scripts.
Reply With Quote  
Join Date: Sep 2005
Posts: 7
Reputation: jakeday is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jakeday jakeday is offline Offline
Newbie Poster

Re: website password protection

  #5  
Sep 29th, 2005
guys,

thanks for the replies.

tgreer, in response. (this will actually answer my second question myself, so i'm feeling a bit foolish).

I'm currently writing a few Java programs to scrape a website. unfortunately i've hit an issue with the racingpost website, as some of the pages are directed to a "restricted access" page. Its free subscription, so i've already got an account with them, but i have no idea about how to write the java to "feed" the username / password to the racingpost server.


i only started learning java a few days ago, and (embarassingly) i wasn't sure when i posted the question, whether the problem was going to be understanding the "javascript" in the website or the "java" code that i'm writing to send the details. I'm not actually sure what code is behind the scenes of the racingpost website any more either or how many interactions there are between the racingpost and my browser!)

can you confirm that i really need to post this into the java forum.....and if so i'll let it slide quietly off the bottom

(i also think i need to understand more of what i'm doing before i post the question again anywhere!!)

thanks

jake
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: website password protection

  #6  
Sep 29th, 2005
Yes, the Java forum. JavaScript is client-side. It will only run in a client browser. In other words, you can't make YOUR JavaScript run in someone else's page.
Reply With Quote  
Join Date: Sep 2005
Posts: 7
Reputation: jakeday is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jakeday jakeday is offline Offline
Newbie Poster

Re: website password protection

  #7  
Sep 29th, 2005
thanks tgreer,

think i'm going to go away and learn a bit more of the basics before i post my request in the java forum though ;-)

thanks again for the advice.

jake
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 1:11 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC