To quote the US code:
But it is used a a guideline. Often it comes down to a court ruling.
Another doctrine is "fair dealing"
Not a lawyer, but I would guess that one would be bound by both jurisdictions. If nothing else, the host for the site (ie physical location of servers) would...