Hide URL!

Discussion in 'PHP' started by cwboaze, Dec 13, 2007.

  1. #1
    Is there a code that a person can put on a certain page where the URL is not
    visible?

    Is there a code I can put on a page that erases the URL? From being visible?

    example: if I type in example.com/mypage.php

    it will show mypage.php but pull up a seperate website, what is the most efficent way of doing this!?

    Thanks in Advance!,
    CB
     
    cwboaze, Dec 13, 2007 IP
  2. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #2
    build your site in frames ?
     
    Brandon Sheley, Dec 13, 2007 IP
  3. UKWebmasterForum

    UKWebmasterForum Guest

    Messages:
    477
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You mean where it is displayed at the bottom of Internet Explorer?
     
    UKWebmasterForum, Dec 13, 2007 IP
  4. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #4
    
    echo file_get_contents("http://example.com/mypage.php");
    
    PHP:
     
    Kaizoku, Dec 13, 2007 IP
  5. theadud

    theadud Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    include("mypage.php");
    PHP:
    Or you could make a page redirect to yours; like www .moo.no. It's a norwegian site, but you could get it in english
     
    theadud, Dec 13, 2007 IP
  6. cwboaze

    cwboaze Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That is a idea, but not one I like. I just ethicaly hate frames. but it will work!, but will not hide urls in the title, status, or display unless programmed to.

    Yes, + The Title, + The URL Address Bar

    I need it to display www.example.com, but the contents of the page is another webpage or sources from another webpage.

    Now, this looks like the ideal!, item. will this work with php4, or do I need 5.

    Redirect, would this hide the URL shown in the status, + Address Bar. ???, I have built tons of redirects, yet none hide the from address.

    It still shows the destination!, or where you came from!

    --

    Thanks, all for your help here.
    CB
     
    cwboaze, Dec 13, 2007 IP
  7. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #7
    include() doesn't redirect.
     
    MMJ, Dec 14, 2007 IP
  8. vonvhen

    vonvhen Peon

    Messages:
    152
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I think you can modify your htacess file to do this too.
     
    vonvhen, Dec 14, 2007 IP
  9. andre44

    andre44 Active Member

    Messages:
    77
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #9
    thanks boss... :)
     
    andre44, Dec 14, 2007 IP
  10. sunnyverma1984

    sunnyverma1984 Well-Known Member

    Messages:
    342
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    120
    #10
    you can also user curl() function to do this for more detail see php manual
     
    sunnyverma1984, Dec 14, 2007 IP
  11. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #11
    You need atleast PHP 4.3.0 or 5.x.x to use file_get_contents();
     
    Kaizoku, Dec 14, 2007 IP
  12. cwboaze

    cwboaze Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Thanks, for your help!
     
    cwboaze, Dec 14, 2007 IP