Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

Restrict a web-site getting opened from google

$
0
0

I have developed a web-site in ASP.Net from which I am calling an existing web service to open a document in pdf format. Both my web-site and the web service is hosted in IIS. This web service was existing and provided by some third party vendor. I have to provide an ID and Name in query string to this web service. I understand that sending data in query string is wrong but this is existing web service which I have to have use. This is working fine to open documents from my web site. But, the problem is if someone type my site name in google then it is opening documents directly from the web service URL. 

I want to stop google opening the documents from that web service directly. I do not have code of this web service. For some reasons I have to use this web service only. I have full access of the IIS on which this web service is hosted. Is there a way that I could restrict this web service getting searched from google. Or is there a way that I could tell this web service to respond only if the request is coming from my web-site. 

I have already tried robots.txt but its not working as web service path is already indexed by google. If there is a way to remove the indexed URL from google then also it will work for me.


Viewing all articles
Browse latest Browse all 1881

Trending Articles