| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| password protecting help | |
|---|---|
| Tweet Topic Started: Feb 25 2005, 06:01 PM (416 Views) | |
| gsforum | Feb 25 2005, 06:01 PM Post #1 |
|
Pro Gamer/Shinobi/Samurai
![]() ![]() ![]()
|
help! I have a flash password box, but theres 1 problem. if u type in the web adress to the site that the box protects, u get there without a password. anyone know how to prevent this? i thnk u would use something like "if (The URL That u came from)= my site then goto (that other site) else goto (the password page)" thats 2 much visual basic though...its like screening the visitors so that only the 1s i want come in. |
![]() |
|
| Jory | Feb 25 2005, 06:22 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
they cal that a referrer. http://www.leave-me-alone.com/referrer.htm should help you/ (or http://www.google.com referrer. should tel you what you need |
![]() |
|
| JCink | Feb 25 2005, 06:25 PM Post #3 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You can do it in PHP.
And in my experience in flash - it does not send a referrer when you POST from it. |
![]() |
|
| Jory | Feb 25 2005, 06:40 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
and where exectly does that check if you come from the right url? but yours works to. (you can get through both, so use both if you want extra security) can't remember how to get by JCink script right now, but thats not important |
![]() |
|
| gsforum | Feb 25 2005, 07:57 PM Post #5 |
|
Pro Gamer/Shinobi/Samurai
![]() ![]() ![]()
|
well, the referer just tells me where ppl are coming from...(or thats what i got off of it, anyway) and the code that u posted looks like it will only do what my flashbox does...correct me if im wrong though... geez im a coding noob <_< oh well...thanks for the responses so far... |
![]() |
|
| JCink | Feb 25 2005, 08:02 PM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I am a bit unsure as to what you're saying. I thought that, you'd created a box to type a password in using Flash MX, and that if the user gets the password right, it posts it to a webpage and it opens up if its right... can you supply me any links? |
![]() |
|
| gsforum | Feb 25 2005, 08:15 PM Post #7 |
|
Pro Gamer/Shinobi/Samurai
![]() ![]() ![]()
|
this is the link. click on member downloads, that will take u to the box. what i want to do is prevent ppl from getting to the download site by typing it in manually. i want them to have to type in the member id. |
![]() |
|
| JCink | Feb 25 2005, 08:47 PM Post #8 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Ah I see exactly what you're doing here. Allright, your host, which is geocities, you can't do what you need to do in order to get the result you want. You'll have to move to a PHP enabled host, like http://yahoo.com , very good hosting. Geocities doesn't give you the right tools to do what you need. If you want, you can put the just members only page on yahoo. What you need to do is not do the password checking in flash, let the PHP do the checking. Put this down for the button, wipe out everything you currently have: on (release) { var the_sent_id = varofyourmemberidbox; getURL("http://yoursiteonyahoo/thephppage.php", "_self", "POST"); } You need to adjust varofyourmemberidbox to the var of that textbox you type into in flash. This'll POST it out to a webpage. Now take this, put it in a PHP file, and upload it. Have it geturl to this PHP page on your account at yahoo.
This will protect the page. Unless they put the right password, it does not let the member in. They can't get in through the backdoor by just going to the URL either, they need to have a password. |
![]() |
|
| gsforum | Feb 25 2005, 09:02 PM Post #9 |
|
Pro Gamer/Shinobi/Samurai
![]() ![]() ![]()
|
the only hosting i can find on yahoo is geocities... and can u please be a little more specific with the vars? like sub in usename, password, stuff like that. and thanks so much for helping me :/
|
![]() |
|
| gsforum | Feb 25 2005, 10:23 PM Post #10 |
|
Pro Gamer/Shinobi/Samurai
![]() ![]() ![]()
|
god im such an idiot!!! :@ i can just make the whole thing a flash movie...thank u sosososososososo much for your help, even though it kinda confused me :/ |
![]() |
|
| JCink | Feb 25 2005, 11:48 PM Post #11 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
How funny. InvisionFree likes to censor there is a reason it's censored - so don't try and get around it Thats why it showed up as yahoo.com Oh well glad you got it anyways. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
9:14 PM Jul 10
|



![]](../../../../0/1/0/p601690/pipright.png)



9:14 PM Jul 10