PHP IP Checking...



Ok, this seems like it should be really simple.

On my server/website I have a very basic upload script and page. It takes
file, it uploads it to a directory, you may browse the directory. Anyone
can upload files etc.

I want to create a second "copy" of this page and script (which I've done)
but I want it to only accpept uploads from PCs with the same IP as the
server (ie only I can upload to it). This seems like it would be a realy
easy thing to add to my upoad script.

Actually on a related note I wouldn't mind adding usernames and password and
a bit more sophistication to the upload page but freankly, I know nothing
about PHP. I picked up the upload script off of a simple tutorial
somewhere.
--
Josh "Ramen Junkie" Miller


.



Relevant Pages

  • Re: [PHP] Rename generates level 2 warning but works
    ... >> of time yesterday with an upload script that did not recognize files when ... Still getting the warning AND the rename function works. ...
    (php.general)
  • Re: file upload form with network solutions
    ... If they allow ASP you can try www.asp101.com ... for an Upload Script ... is there a cgi script that does? ...
    (microsoft.public.frontpage.extensions.windowsnt)
  • Re: mkdir in a 755 dir
    ... i'm trying to write an upload script on a web server that will not ... allow me to change the ownership or group name of a directory. ... physically create /public_html/uploads to be 777 so that i can upload ...
    (comp.lang.php)
  • Re: how to create directory+subdirectory
    ... > i have upload form in which users can choose TYPE of file they are uploading ... > upload script is getting: ... Prev by Date: ...
    (comp.lang.php)