Results 1 to 6 of 6

Thread: HTTP Auth

  1. #1
    Join Date
    Jan 2006
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question HTTP Auth

    Hey there, I am wondering how I can kinda get around the login from a webpage. It is mostly network statistics from my colo provider but I would like to have a graph and stuff outside of the secure page they give me. Any ideas?

  2. #2
    Join Date
    Jan 2006
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Nothing?

  3. #3
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    No, you can't "get around" a login. It's there for you to login.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Actually you can, but it depends a little on what it is you want to do exactly.

    From what I gather there is a graph image behind a log in page that you want to copy to show on a page that is not log in enabled. Is that correct?

    HTTP Auth is not weak, and you don't really "get around it" BUT, you can tell the loading page to "pretend" to log you in.

    let's say the page with the log in is at: http://yoursite.com/login.html and the username is "login" and the password is "please"

    If you go to
    Code:
    http://login:please@yoursite.com/login.html
    it will log you in. Sometimes (most times?) it will have a pop up asking if you want to log in and show the passbox already filled in. Just clicking okay will work. (as long as username and password are correct)

    Now, armed with this, you can get the code from the page with the graph on it, and use a php include() to pull that page out and display it.

    PHP Code:
    <?php include "http://login:password@yousite.com/login.html"?>
    at most a visitor will just have to click "okay" on the pop up that appears, but only once during their session.
    Last edited by BLiZZaRD; 12-22-2007 at 07:17 PM.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    True, but that makes any previously gained security now worthless.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Yes it does, a double edged sword so to speak.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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
  •