Results 1 to 5 of 5

Thread: Hide my url

  1. #1

    Thread Starter
    Hyperactive Member phutie's Avatar
    Join Date
    Jan 2002
    Location
    Somewhere in Asia
    Posts
    295

    Hide my url

    Hi,

    how can I hide my download url so that nobody can go directly to my www.mysite.com/dloads/setup.exe?

    ty
    Multimedia Programmer
    Uses VB.Net and MySQL

  2. #2
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    <?php

    header("Location: setup.exe");

    ?>

    Will redirect without anything being displayed, so users can not trace the file. Though they will have to filename.

  3. #3

    Thread Starter
    Hyperactive Member phutie's Avatar
    Join Date
    Jan 2002
    Location
    Somewhere in Asia
    Posts
    295
    How can i do this using an html form that this happens when he hits the submit button?
    Multimedia Programmer
    Uses VB.Net and MySQL

  4. #4
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    form action -> the file below with file name..


    e.g.
    <form action="download.php?file=setup.exe">
    (or however it is)

    <?php

    header("Location: /download/$file");

    ?>

    maybe...?


    haven't tested it

  5. #5
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    or as a link

    <a href="download.php?file=setup.exe">Download</a>

    In Download.php:

    <?php

    header("Location: /download/$_REQUEST[file]");

    ?>

Posting Permissions

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



Click Here to Expand Forum to Full Width