View Full Version : accessing another site through my own
allawasurvivor
01-20-2005, 10:22 AM
i would like to set up that another site should open up within my window. meaning my navigation bar and header should stay there but the other site should open inside.
also i wanted to know if i can set up a link that it will automatically fill in the username and password and sign itself in?
shwaza
01-20-2005, 12:22 PM
Well i'm not sure what you mean by username and password stuff, but it sounds like you want frames :P, probably an iframe by the sounds of it.
<iframe name="iframe1" src="otherpageurl" align="top" height="100" width="400" hspace="10" vspace="10"></iframe>
There, just change the dimensions and the alignment to fit your needs :)
starmena3
01-20-2005, 01:31 PM
lol thank you I was looking for that code :) well actually I already knew about it I just forgot what it was :P and are you talking about the automatic logon or somethin?
undacuvabruva
01-20-2005, 03:31 PM
Well, for the names.
Do you mean something like
<textarea height="1" width="1">UserName</textarea>
But that would just fill in Username for everone who views that page.
Some Browsers Remember your Username and password for particular sites.
Silver
01-20-2005, 06:49 PM
Normally, well, you'd normally just put a simple textbox instead.
<input type=text name=username>
As for the signing itself thing, thats more or less the doing of the browser.
Ofcourse, its not totally out of the way to do it manually either :P . All you do is the first time a user signs in from that IP, on that form, just set a cookie in the browser with the username and password details.
The next time the user visits the page, you can make javascript, so that onBlur of the text , the javascript checks if the username is same as that in cookie, and just inputs in the password's value for you.
I hope you do know how to use javascript to access cookies, right. Cause it really aint tough. Its mainly document.cookie and its various attributes.
allawasurvivor
01-21-2005, 04:08 AM
ok lol thank you so much everyone but i see this is over my head! im ganna need to ask someone to help me out with this :P
btw, what i mean is for example i want that when you click a link in my site it will open up my yahoo inbox without asking a password... dont worry that was just an example! B)
I'm afraid that's impossible to do, on the webside, at least. What you would want would be a form filler. You can find a whole bunch http://www.google.com/search?q=form+filler...:en-US:official (http://www.google.com/search?q=form+filler&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official) by searching Google.
Good luck.
Silver
01-22-2005, 07:18 AM
Impossible to do, ey. I'm not that very sure whether Impossible is the right word Tim.
There maybe a way. Maybe.
Um... when you click on a link, let it open in a new blank window. This window will load the page "filler.html" . filler.html contains 2 frames. One frame is just a very small one, going to page "passwords.html" and the other one is going to mail.yahoo.com .
Hopefully, the user isnt already signed in to his yahoo mail. In this case, consider that he hasnt.
The both pages load. In yahoo mail, the major form part would be-
form name: login_form
userid name: login
password name: passwd
Hence, in the first frame, ie, password.html, try and put this-
<html><head>
<script>
function fillform(){
var passwd=ret_pass(); //Get the password from another function. Main reason is cause ret_pass is the password, stored in the encrypted form, and the ret_pass decrypts and sends it here
var userid="xyz@abc.com";
parent.yahoo.login_form.login=userid;
parent.yahoo.login_form.passwd=passwd;
}
....
</script>
</head><body onload="setTimeout('fillform()',1)"></body>
I'm not sure it would work. I know that you can change the href of another frame from the first one. Infact, I tried to even write in another frame. But accessing the elements, not sure. But, it should work.
What this does is that when you visit yahoo mail, it will automatically fill in the username and password fields in those fields. The user just clicks submit.
Again, i'm not sure abt its validity, I hope it works.
It might be possible, I guess, (I don't know a whole bunch of JS), but couldn't the encrypted password be just as easily decrypted and wrote out to them, with their own script? Unless your just using the script locally, it would be dangerous, even if it's somewhat encrypted.
Silver
01-22-2005, 06:05 PM
In the end, ofcourse, when u encode with Javascript, the user can view that mechanism. Hence, encryption is sumthing that Js isnt related to really.
The only use of encryption is the make the life of the decoder a bit harder.
Ofcourse, then there is a server side method to do this. I mean, its not impossible, is there. Um... using a perl script is what I would prefer (in this case ;) ), but as most ppl use php, they can just use get_url to get the yahoo login page from the server side, and display the output. And thereon in, the server side php script acts like a proxy.
I've already told u the basic details abt that form, but those arent enough. There are a tonne of those hidden fields, which u gotto check out @ yahoo, by viewing the source code.
Once you get that, you can make a php script which uses method post to get the correct page.
And thereon in, to keep the IP the same, use the server as a sortof a proxy to get messages and all.
Wonder if those multiple redirects and mechanism of dynamic created static pages would support this, cause the php script has a chance of failiin there.
Dragon Gamer
01-28-2005, 04:34 PM
This is very helpful, thanx because i seriously needed it.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.