Click here to Skip to main content
16,007,277 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wanted to block the specific url then Who can i block?
Posted
Comments
Arun Jacob 28-May-10 4:44am    
Your requirement is not clear.Give some more details.

1 solution

If you want to restrict the entire website for specific URL in that case you can configure this at your IIS level as mentioned in the following link.

http://technet.microsoft.com/en-us/library/cc787192(WS.10).aspx[^]

If you want to restrict some specific pages in that case you can get the url from the “http_referrer’ server variable as follwong

Request.ServerVariables("http_referrer") 


Just check the url, if you want to block then redirect the request to some custom access denied page.


Provide more details, if this is not the case.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900