PHP downloading files



I want to write a script that doesn't let anybody download file but only the logged in users. I wrote a script for downloading the files but it still lets someone to enter a URL and download it.
Example:
My file is www.server.com/uploads/bla.txt
The logged user gets it throught www.server.com/download.php?file=bla.txt
But someone can still download it by typing in the URL

Can this be forbidden, maybe with chmod for reading and only allowe reading and not users it for server or maybe during the download?

How to solve this?
.



Relevant Pages

  • Re: Error When Removing AD from BDC
    ... downloaded it and saved the script in the folder specified. ... > you should move any fsmo roles off of this server. ... > tools if not loaded can be installed from the server install cd). ... > If you download a gui script I wrote it should be simple to set and run. ...
    (microsoft.public.win2000.active_directory)
  • Re: IE Wont Open
    ... How to disable script and runtime errors ... You can get the Sun Java J2SE RunTimes or SDK here: ... Sun also offers an automatic download and install of the 1.4 Java plug-in ... Under the server column, for trusted, change that to a check. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: How Can I Keeping Count of Downloaded Pictures?
    ... Problem is I am trying to keep count of each and every picture ... It depends on what you call a "script solution". ... A server-side application evaluating the server log files cannot distinguish ... image file download -- no URL modifications given, ...
    (comp.lang.javascript)
  • Re: constant runtime errors-please help
    ... Common script errors messages can be eliminated by Clicking: ... click Internet Options. ... Two download versions are available for Windows Script 5.6. ... HiJackThis: - Free ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Help with Net::ftp not downloading
    ... download a set of files from my server to my local drive. ... getting any error messages, the script isn't performing. ... Step 1 is to investigate if you got a Perl problem or a non-Perl ... Can you download files with another ftp client using the same ...
    (comp.lang.perl.misc)