|
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? |
|
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? 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 THANK YOU!!! I did it :) 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. Yeah you lost me that time..lmao >_> |
|
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 |
|
<meta http-equiv="refresh" content="0; url=your new address.html">
? |
