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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:59:34+00:00 2026-05-26T03:59:34+00:00

I have a certain directory I only want accessible from within my office. I

  • 0

I have a certain directory I only want accessible from within my office. I have this working, and blocked just fine. Here is what I have in my apache conf:

<Directory /var/www/html/live/protected>
  Order deny,allow
  allow from 1.1.1.1.1.1 # My office ip
  deny from all
</Directory>

Rather than create a custom 403 page, I would rather just send these people to 404 pages. Is there a way in Apache I can have a conditional that if they are not coming from my office IP, I can just send them to the 404 page I have?

Thanks

  • 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-26T03:59:35+00:00Added an answer on May 26, 2026 at 3:59 am

    Maybe this can help:

    RedirectMatch 404 ".*\/\..*"
    

    -> Is there a way to force apache to return 404 instead of 403?
    -> Problem redirecting 403 Forbidden to 404 Not Found

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

Sidebar

Related Questions

I want to generate javadocs only for certain artifacts of my project from within
I have a server which executes Python scripts from a certain directory path. Incidently
If I have a development area that I deleted files from a certain folder/directory,
I have a NSFileWrapper directory in which I would like to update a certain
I have lots of files in a particular Directory. In a certain PHP page
We have certain views in Portrait mode only, and certain views in Landscape mode
We have certain configuration files which we want to be in version control as
I have a webpage that I only want a specific group to log into.
Suppose I want to have a certain image on the main screen of my
I have a web facing, anonymously accessible, blog directory and blogs and I would

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.