Forum Thread: How to Limit the Upload File..?

How to Limit the Upload File..?

Hi guys ,

I recently created the simple website .it also has a form from where u can upload your media and everybody knows how to hack website by uploading shell,or java script virus or by SQL injection through file uploading swctor.

So I want to know how to prevent these type of attack ?
How to check that the file is really .mp4 or not ?

Its really helpful if anybody give me the command line of it.

1 Response

You can check file type by

userfile = name given in the form

type = mp4 or any else format
exclude size condition if you dont need it

Share Your Thoughts

  • Hot
  • Active