Site lock html5 game

Hi everyone. I hope for your help! Is it possible for my game(build html5) to work only on one site and not run on the rest? Maybe there is a function that can get domain name on which the game is located? In Unity and Flash, this is called Stelock. For UE4, I could not find anything. I use blueprints for my game. Sorry for my bad english!