-
Kick-out script...
Hey.
I'm needing a script that will basicly kick out people not logged into N+S Studios. This is sorta hard to explain.
Try logging into N+S (http://kapleenmusic.webfreehosting.net/testlogin.htm) with the username "sarah" and password "password'.
You will see it leads to a page that can be viewed if they just type it in.
If they aren't logged in, it will still let them in. Is there a script that sends them to the login page? Or maybe an error page for not being logged in?
I need one desperately.
thanks in advance-Nicolas.
-
This page has a very unsecure script all user names and passwords are exposed as well as the page they are directed to. You could do this securely through a server side language. If you have access to it please post what you could do it with for example php, asp, cf, etc.
-
I'm sorry. I don't understand.
One thing though,
When I upload a .PHP or .ASP it won't work on my site.
Like, when i put it on, it's just strings of code everywhere.
ONly HTML will work for me :/
-
if you can't use php (or some similar server-side language), then your only real alternative is .htaccess
otherwise, I think you're out of luck. javascript can't do it securely.
-
Thank you very much everyone.
Now, I have one more thing to ask...
How do I use a .HTAccess, edit it, etc??
Lol I know, I sound so noobish right now, but I'll admit, I am.
-
-
Did I do this right?
.HTACCESS:
AuthUserFile C:\Documents and
Settings\myname\Desktop\Stuff\Nicolas\HTML's\login
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require user valid-user
.HTPASSWD:
sarah:$apr1$KL.0b...$EmEd5kFrJDm5jSAYXc4H40
I am confused with this.
-
Are you using this on a local machine? .htaccess will only work on a web server (well, it might be workable on a local computer, but I really don't have any idea about that). If you're on a local computer or network, you should be using your OS to manage access.
-
How do I fix this? I know nothing about WebFreeHosting except that they use Net2FTP for Online FTP. Could you leave me an email so we may talk faster/easier?
Thanks :)
oops998@gmail.com (I know it's A wierd email address)
-
Do you mean http://webfreehosting.net/? They seem to offer PHP, which would make this a bit simpler and user-friendly.