Im trying to upload an image to my server given a url pointing to an image. I was wondering, which measures should i take into account to prevent remote file inclusion attacks, how can i make sure that the url a user provides really points to an image and not to a php file
Thanks