Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 19, 2012 06:24 AM by Chen Yu - MSFT
Nov 16, 2012 02:43 PM|LINK
hello, I have the following problem with my site hosted in IIS: there are many links to my site from other sites (domains) that is something seems to me malicious. Is there any way to stop this happen (programmaticaly). Simply i don't want links to my site
from other domains or external sites. I dont know much about security but I thing this is a cross-domain threat some kind.
Any help will be much appreciated!
Nov 17, 2012 07:33 AM|LINK
You can check the host name for the request url. And an programatically decide whether to run the code or not.
Nov 18, 2012 05:27 AM|LINK
hello, Can you please provide me an code example? (ASP.net). I think that is what I want.
Nov 19, 2012 06:24 AM|LINK
You could use Request.Url.Host to get the host component and then decide run your code or not.