login about faq

Due to the large amount of spam accounts, we temporarily disabled new user sign ups. To override this, email newuser.lgqa@gmail.com and an admin will determine if you are permitted to join


Ok so what I want to do is change my web server around a bit. I want the actual domain to be normal, but if you try to access the site through the IP address it will redirect to another site. I do not want people to be able to access the site through the IP basically. Is there any way to do that?

asked Nov 08 '10 at 18:49

matt31894's gravatar image

matt31894
391111426

edited Nov 08 '10 at 18:56


This is possible in HTTP/1.1, because the browser sends along a HOST: your-domain.com field in the HTTP header that would be your_IP if they typed http://your_IP/uri. This allows you to set up virtual hosts, so I guess your IP would just be another virtual host ;). That's how hosting companies host websites (hey, you didn't expect them to host your site on a dedicated machine, did you?). You could set up a HTTP/1.1 server that defaults HTTP/1.0 and your IP to an error page, or something, to force people to use your host. My question is: Why do you want to do this?

answered Nov 08 '10 at 19:38

Seb's gravatar image

Seb
(suspended)

edited Nov 08 '10 at 19:43

The website is for my mom, and i'm on this game hacking team..and I don't know the people on the team at all..they are from like germany and stuff, and I do not want them to be able to just find everything about me from my IP..cause my moms name and cell phone number and stuff is on the site for her job..so yeah

(Nov 09 '10 at 06:06) matt31894 matt31894's gravatar image

THANK YOU!!! I did it :)

(Nov 09 '10 at 17:51) matt31894 matt31894's gravatar image

You're welcome. I suggest you verify that the server doesn't give your details out via HTTP/1.0. You can do this by connecting to your server using telnet: start -> run -> cmd.exe -> telnet lockergnome.net 80 -> GET / HTTP/1.0 (followed by two enter presses).

What you get in this example is a HTTP/1.1 301 error in the response header telling you lockergnome has moved permenantly! That's because lockergnome is running on a shared server, and the server doesn't yet know which site you want. If you type the following, you should get the index for lockergnome: GET / HTTP/1.1<enter>HOST: lockergnome.net<enter><enter>

Make sure you: 1. Try the HTTP/1.0 method, make sure it responds with an error. 2. Try the HTTP/1.1 method, using your IP. Make sure it responds with an error.

(Nov 09 '10 at 19:14) Seb Seb's gravatar image

Yeah you lost me that time..lmao >_>

(Nov 09 '10 at 21:01) matt31894 matt31894's gravatar image

Unfortunately, there is no way that I know, you can try subdomain...

This is because your website http://SITENAMEHERE.com, when someone looks up that site, it ask the DNS for the number IP, which it is the same as typing the IP

answered Nov 08 '10 at 18:58

kevin's gravatar image

kevin ♦♦
35.7k160317590

edited Nov 08 '10 at 19:00

That's what I figured :(

(Nov 08 '10 at 19:01) matt31894 matt31894's gravatar image
<meta http-equiv="refresh" content="0; url=your new address.html">

?

answered Nov 09 '10 at 06:12

Fish's gravatar image

Fish
7.3k109144215

edited Nov 09 '10 at 06:12

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Join Us in the Chat Room

Tags:

×351
×255
×5

Asked: Nov 08 '10 at 18:49

Seen: 753 times

Last updated: Nov 09 '10 at 21:01