Jump to content

Recommended Posts

Posted

Is it possible to prevent downloading of specific file types?

 

I am using an application that stores files users should not be accessing in the smae directory to which uses go to access it. The hard way would be to move these files outside outside the public_html dir and change all the references to them in the application. If I could just prevent downloading files of specific types that would solve my problem.

Posted

create a .htaccess files for that directory. Put the correct statements in that files to filter out any file with a specfic name, or a specfic file extension, and it will make it like those files do not exsist if you try to access that file directly.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...