I had developed an asmx web service and is consuming it successfully using jquery datatable in a html page, at the same time I can also directly call the that web service But I want the web service to be consumed only inside my html page and restrict it from accessing it anywhere else.