简体   繁体   中英

IIS7 proctect an ASP MVC website already using form authentication with basic auth

I would to protect a whole website with a basic authentication or by Ip addresses.

But the website in asp mvc already use form authentication.

I mean protect the website with a basic auth then once connected use the normal form authentication + DB system.

I want to prevent people and robot acces a website version not yet finished.

I tryed Ip restriction in IIS but i can't refuse ALL IP, juste some Ip ranges (thats so stupid...)

Activate basic and form authentication at the same time doesnt work neither...

what can i do??

Thank you

I tryed Ip restriction in IIS but i can't refuse ALL IP, juste some Ip ranges (thats so stupid...)

You can do this, I think you have to change the mode from allow by default to deny by default, using Edit Feature Settings on the right under actions.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM