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 a Python script that we're using to parse CSV files with user-entered
There are various answers on Stack Overflow which explain the conditions under which tail
In Java there are a bunch of methods that all have to do with
I have a method that does roughly the following: def some_method(....) user = User.where(....).first
It seems to me that there is a certain kind of method that we
I have a Maven project that was built a few years back, and now
Input: The customer claims that the application (.NET) when querying for some data returns
I am stuck with a design problem that I hope you guys can help
Can anyone show me a way of converting SQL Server data-types (varchar for example)
I'm looking at protobuf-net for implementing various messaging formats, and I particularly like 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.