In Magento 2, you can use the HTTP_REFERER to check the source of a request. This header will contain the URL of the website that the request is coming from.
You can check the value of this header in ...
To create new order status and state follow below steps:
1.Create folder Setup/Patch/Data in your module
2.Create file UpdateOrderStatuses.php
3.Implement method apply in the class UpdateOrderStatuses