Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3875276
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:14:55+00:00 2026-05-19T22:14:55+00:00

In a web application I have an upload folder where all users’ files are

  • 0

In a web application I have an upload folder where all users’ files are stored, I need to eliminate the possibility of executing them.

As seen in Wikipedia:

chmod -R a-x+X directory
remove the execute permission on all files in a directory tree, while allowing for directory browsing.

But after successfully applying this to upload folder all the enclosed php, perl and python scripts that I’ve placed there for test purposes (and I suspect all the other types of executable files) do get executed when I print their addresses in browser.

Why is this happening and what can I do to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:14:55+00:00Added an answer on May 19, 2026 at 10:14 pm

    The perl, php, and python interpreters will happily execute input files passed to them, whether the execute permission bit for their input files is turned on or not. (On
    the other hand, if the file has a shebang line specifying which interpreter to use,
    the execute permission will be respected. But that is probably not the case for
    your situation.)

    You’ll have to address this issue by configuring your web server (restricting
    the directories that it considers executable), rather than at the filesystem level.

    If you’re using Apache, you’ll probably want to look at the ScriptAlias directive,
    either in the global configuration or local .htaccess files, as described here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have created a web application, using ASP.NET, that allows users to upload documents
I have a Web Application project where the users can upload images to the
I have a web application that needs to take a file upload from the
I have a web application that should behave differently for internal users than external
I have a scenario where users of my ASP.NET web application submit testimonials consisting
I have created a web application in that application i have added two folder.
In our web application we have a directory which resides outside of the project.
In a Java web application I have a recurring message load of type A
Currently I have an application that receives an uploaded file from my web application.
I'm writing a web application that will have plugins. The plugins will be .DLL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.