Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to redirect your page? 1

Status
Not open for further replies.

gghMatt

Programmer
Oct 24, 2007
5
US
I am trying to make it to were when you type in the url to mysite.domain.net/PrayerHTML it will redirect you to mysite.domain.net unless you type in the password on mysite.domain.net!

I hope you understood that. Really I am just trying to make a password protected site with no eazy way around it.
 
Do you have access to any server side scripting languages?
jsp, php, asp, coldfusion ect?
 
Really I am just trying to make a password protected site with no eazy way around it.

Then you're in the wrong forum. Javascript is the worst way to password protect anything since your users can easily do a view-source of the page to decipher the password from your code, or even disable javascript entirely.

You're going to need to use a server side language like j4606 mentioned, along with a combination of session variables or cookies and a database if you wish each user to have their own individual passwords. You'll need to combine a few concepts to get it to work together smoothly, so it's best that you do some research via google to figure out how to tackle this project and then post back here in the appropriate forum with a specific issue that you are stuck on. As it is, your question is just too broad to begin to go into detail about, even if this were the correct forum....

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B> bites again.[/small]
 
Can you tell me some languages that the user cannot disable, maybe I can try to learn one of them.
 
j4606 already did above:

j4606 said:
jsp, php, asp, coldfusion ect?

Note that these are languages for the webserver, not the client machine. For this reason, the code is safe from the client's trickery (for the most part) and the reason it should be used instead of javascript or any other client side language.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B> bites again.[/small]
 
Would asp work good for this and if so do you know of a forum for asp?
 
Would asp work good for this and if so do you know of a forum for asp?

Yes, ASP would work well for this. Also, there is a search field at the top of this page (next to the big red button that says "search"). Make sure the dropdown has "find a forum" seleced (it does by default) and then type in the name of the forum you're looking for and click search.

You can also take this shortcut:

forum333

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B> bites again.[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top