html hide page thing?

tehrilez

New Adventurer
Joined
Aug 3, 2007
Messages
776
Reaction score
0
Age
30
Location
USA, NY
if anyone can help me with this:

I need a code that shows a white screen asking for user/pass, and will not show what is on the page, unless it is logged in. Not a registration thing, but one general user/pass that I can give to someone to use (even if it does spread I could change it) also if possible I need the source (right click, view source) to be hidden until you login. Not much point for the login if people can see what is on there anyway.

and only HTML if at all possible.


I've seen things similar but requiring an FTP or upload service and I don't believe what I'm trying is capable so I need to be able to integrate it into HTML.

thanks.
 

Shurik3n

New Adventurer
MSC Developer
RiP
Joined
Aug 15, 2006
Messages
1,357
Reaction score
0
Age
34
The easiest way would be to use an .htaccess file with a password set up to the directory. Just google .htaccess and you should be able to figure it out.
 

tehrilez

New Adventurer
Joined
Aug 3, 2007
Messages
776
Reaction score
0
Age
30
Location
USA, NY
Shurik3n said:
The easiest way would be to use an .htaccess file with a password set up to the directory. Just google .htaccess and you should be able to figure it out.

k, I'll check it out, thanks.
 

Netrogor

New Adventurer
Blades of Urdual
Joined
Jul 3, 2005
Messages
1,963
Reaction score
2
Location
My information.
Better yet, read up on PHP & Apache2, rilez. I used those, in combination with MySQL, and have made my own little websites that way, before; with the user/pass login screen setup to block unwanted connections to certain directories. It's actually pretty easy to setup, once you know what file goes where.
 
Top