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

  • Home
  • SEARCH
  • 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 3956262
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:20:26+00:00 2026-05-20T02:20:26+00:00

Is it possible to prevent people from seeing files like .bak from am apache

  • 0

Is it possible to prevent people from seeing files like .bak from am apache directory ? If there is a request for the url (http://foo.com/bar.bak), it’d be good to have a 404 error, and prevent anybody to upload the file.

  • 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-20T02:20:27+00:00Added an answer on May 20, 2026 at 2:20 am

    Now that I know the answer, here it is : one of them is to use RewriteRule in the httpd.conf. – Cedric 14 secs ago edit
    Now that I know the answer, here it is : one of them is to use RewriteRule in the httpd.conf.

    RewriteEngine On # Turn on the rewriting engine RewriteRule
    
    RewriteRule   ^(.*(\.(html|htm|gif|js|jpg|jpeg|php|css)|\/))$    $1  [L,NC]
    # do not do anything (no rewriting), but don't execute the next rule
    #("NC", tells Apache that this rule should be case-insensitive, and "L" tells Apache not to process any more rules if this one is used.)
    
    RewriteRule   ^.*$    /  [NC,R] # rewrite all the other urls to /
    

    This is the main idea. Please, modify the first regex to your needs ! (as urls like foo?bar=obu won’t work, nor foo/bar)

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

Sidebar

Related Questions

Is it possible to prevent an asp.net Hyperlink control from linking, i.e. so that
Is it possible to prevent the browser from following redirects when sending XMLHttpRequest-s (i.e.
Is it possible in a Compact Framework application to prevent the garbage collector from
Is there any way to prevent o.GetType() from throwing an exception when called on
Is it possible to prevent someone other than those allowed from tampering with the
Is it possible to prevent doctrine 1.2 from adding foreign key constraints for a
Is it possible to prevent stack allocation of an object and only allow it
Is it possible to use a CHECK constraint to prevent any date that falls
Is it possible to 'hide' a column in an Oracle 10g database, or prevent
I want to construct a transact sql script that will stop specified people from

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.