Given the existence of load balancers, you will also have to consider the possibility that the address will only sometimes be the local machine.
Why not keep a hash containing the sites you have visited. If the site you're about to visit exists in the hash, avoid recursion by not going there.
In reply to Re: How can I determine whether a URI, hostname or IP address is to the local host machine?
by Anonymous Monk
in thread How can I determine whether a URI, hostname or IP address is to the local host machine?
by dbooth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |