I am binding web app with 2 host names, example:
I have a page t1.html. I would like to set permission access on file
abc.com/t1.html → allow
xyz.com/t1.html → not allow to access
I guess we can do it in web.config not in code. I did some research but most of the posts are related to authorization which doesn't help me. For example:
<location path="your_directory">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
看一下重写模块,可能的操作之一是中止,或者您可以根据主机名将流量重定向到其他URL。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.