Page 1 of 6 123 ... LastLast
Results 1 to 10 of 51

Thread: Kick-out script...

  1. #1
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Exclamation 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.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    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.
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    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 :/

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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.

  5. #5
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    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.

  6. #6
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

  7. The Following User Says Thank You to bluewalrus For This Useful Post:

    [Nicolas] (09-10-2010)

  8. #7
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    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.

  9. #8
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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.

  10. #9
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    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)

  11. #10
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Do you mean http://webfreehosting.net/? They seem to offer PHP, which would make this a bit simpler and user-friendly.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •