I want to restrict customer’s from accessing my website and allow only specific customer’s to access it.
You can turn on the password protection which Shopify offers natively.
If you require more control, may I suggest looking at something like Locksmith.
Will this help in allowing only specific domain’s mail id to only access my site?