Bobafart
03-01-2008, 11:52 AM
how would I protect myself from an attack to ensure that a user submitted URL points to an image (either .jpg, .jpeg, .gif, .png or .ico )?
the var is of this type:
$imageURL = 'http://www.foo.com/img/myimages/dog.gif'
or
$imageURL = 'http://www.bar.com/images/home/vacation/beach.jpg'
or
$imageURL = 'http://www.foobarb.com/img/myimages/banner.png'
I dont want people submitting .exe files for instance
the var is of this type:
$imageURL = 'http://www.foo.com/img/myimages/dog.gif'
or
$imageURL = 'http://www.bar.com/images/home/vacation/beach.jpg'
or
$imageURL = 'http://www.foobarb.com/img/myimages/banner.png'
I dont want people submitting .exe files for instance