Firewalls, Hotlink Protection, and IP Addresses
By
Old Tom
I learned something today, and so I thought I'd pass along the information. But first, why should you care? You probably don't. But... the more you know how servers work, the better chance you have of understanding what's going wrong, when something *does* go wrong.
In this case, something went wrong when converting to name-based IP addresses.
On our old dedicated server (mine and Jojasa's), each domain had its own unique IP address. On the new server, all domains have the same IP address, and it's up to the Apache server software to figure things out from there. If you look up 209.215.97.148, you'll find that twenty or more domains point to that IP address.
That's fine, and that's as it should be. So, what's the problem? To explain that, I need to explain how your browser works under the covers... which just might be interesting, because it also explains how sitesuckers can steal your bandwidth.
Suppose you want to go to
http://www.otscripts.com/product/index.html?oldtom. You click on the link, but what actually happens? Let's look at that in detail.
To connect to a server across the Internet, you need an IP address. We know the domain we're looking for is otscripts.com, but that's not good enough. You've heard of DNS entries, or nameservers? That's where the nameserver comes into play. (DNS stands for Domain Name Server.) The nameserver looks up otscripts.com, and determines that it's at IP address 209.215.97.148.
In order to actually grab that web page from otscripts.com, we need to *connect* to the server. It's like talking to someone at a distance... in order to speak with them on the phone, you have to actually dial their number, and they have to answer the phone. On the Internet, that's called making a "socket" connection. In order to make the socket connection, you need to specify the IP address, and the port number.
unknown
the sponsors of the DFN Weekly yet?
Well what are you waiting for?
Check them out NOW!




