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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:33:42+00:00 2026-05-23T03:33:42+00:00

There are a few cases where, for various reasons, user agents make requests to

  • 0

There are a few cases where, for various reasons, user agents make requests to our server for hosts that it is not configured to serve. Currently this results in them seeing the default Plesk page which is rather hideous, so I’m going to be making a slightly prettier and faster-to-load replacement.

This got me thinking, though, and I can’t find an answer to this online: What is the correct way to handle this situation? Should the server be responding with a 200, a 404, or some other code? Is there an HTTP status code for this situation that I’ve overlooked?

Lastly as a question of etiquette, what should be done in the event someone else’s domain (as opposed to a domain we owned but no longer use) points at your server now (we acquired an extra IP address which was previously in use, and lives on in some incorrect DNS records).

  • 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-23T03:33:42+00:00Added an answer on May 23, 2026 at 3:33 am

    IMHO, if user agents make a request to your server about a domain that you are not serving, then a 404 (not found) seems the most logical to me. After all the domain (and any page associated with it) does not exist on (your) server.

    I would serve the 404 and log the acccesses. If you receive a high number of requests for one domain, then maybe you could try notifying the owner of the domain name (if reachable).

    Edit: If the problem is the host-name header being incorrect, then I think at least IIS will return a 400 (bad request) as a response, which might be an alternative in this case.

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

Sidebar

Related Questions

I have an application that's locked down using forms authentication. There are few nightly
In a few cases, I have a property that needs a backing property for
In the class I am testing, there are a few assert statements that check
Are there specified cases in JPA2 when a merge would not assign the @Id
Though in general I like case-sensitivity in my database, there are a few times
we are experiencing a few problems with the IDisposable pattern. In this case there
in my page there are few hidden field which are filled with the correct
It looks like there a few working solutions for using custom true type fonts
I have a webpage where there are few text fields to be filled up
I'm converting an old VB form to .NET, and there a few Buttons which

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.