Upload image script ?

Discussion in 'Security' started by ziya, Mar 23, 2010.

  1. #1
    Can anyone help how to avoid uploading executable files with .gif or .jpg extensions , with file uplad script ?

    Or can executable files with .jpg ( image) extensions can run when i will try to show them with <img> tag ?

    Thanks
     
    Last edited: Mar 23, 2010
    ziya, Mar 23, 2010 IP
  2. alan_smithee

    alan_smithee Active Member

    Messages:
    873
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #2
    you mean disable hotlinking?
     
    alan_smithee, Mar 24, 2010 IP
  3. sameeraemail

    sameeraemail Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sorry friend i havent
     
    sameeraemail, Mar 24, 2010 IP
  4. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Are you trying to upload an executable script like say .php file and then rename it as .jpg on the server and try to run, when you access your .jpg file?
    this wont be happening usually,
    But this can be achieved by adding a Handler between program and extension (in case of linux server)
     
    maestria, Mar 24, 2010 IP