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 9258207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:20:16+00:00 2026-06-18T12:20:16+00:00

Is there a way, through php.ini or .htaccess to disable all file uploads to

  • 0

Is there a way, through php.ini or .htaccess to disable all file uploads to a server?

The only catch is, I want to have one folder (example an admin folder) to still have access to upload.

I am thinking along the lines of when you disable eval and exec.

This question stems from the fact that I have seen sites infected with malware, which are located in all random spots through the server – a recent example I have seen is something similar to:

eval(gzinflate(base64_decode("HZ3fdsfHjtfvdqlkdsfabf5Y7OAQfMCRc9YKaYc5o0mHOmmJ6+ .... ));

Located in a file called stp.php on a server. My thinking is that if the sites users need no access to upload files (which they don’t), then it should be simply disabled.

  • 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-06-18T12:20:18+00:00Added an answer on June 18, 2026 at 12:20 pm

    Yes. In your php.ini file set file_uploads=Off as described here.
    This will disable all file uploads through HTTP.

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

Sidebar

Related Questions

Is there a way to disable eval function without doing so from php.ini file.
If I have 3 radio buttons, is there a way through jQuery of finding
Is there a way to look through the cache for all objects in the
Is there a way to itterate through all of the terms held against a
So, we've got PHP 5.3.2 installed on a Windows 2008 R2 Server. PHP.ini file
Is there any way to create multiple thumbnails from a video through php? I
I have a MySQL server running that will be queried regularly through a php
Am working with large excel file I have removed limits is there a way
Is there a way through the .Net aframework (or has someone written something similar)
Is there a way through the Revit API to change which document is the

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.