Websites have no way to know where a user is located. They can only use heuristics to predict a user’s location. Such a law would be unenforceable anyway because 4chan can just tell the UK to blow themselves and there’s nothing the UK can do in US territory except politely ask Trump to ship them to Europe.