Limit open source demo site for asp.net application?

I am convinced that this is a hoax, but I could not find it easily:

Given the asp.net application, which itself uses forms authentication, what is the best practice for providing a demo site with open access, so that no one who is in the "crowd" can see the site at all

  • IP filtering?
  • Basic auth wrapped around auth forms? I hit my head about it and can't make it work: /
  • VPN?
  • "make the demo site publicly available that is considered harmful" in the first place?
+5
source share
5 answers

, , 80 . , , , . , , , http https .

, http://test.org, http://test.org:9666, . , , .

+1

Web.Config?

, :

<location path="unsecured_path">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>

<location path="secured_path">
    <system.web>
      <authorization>
        <deny users="?" />
      </authorization>
    </system.web>
  </location>

, . Windows, , , .

+3
  • IP - --. , IP-, , , , , .

  • IIS, ( Google, ) - , .

  • - , , .

, , ( - ) - VPN.

+1

" " . 401 , . , , - auth, .

ASP.NET , FormsAuthenticationProvider , 401 " 302 ". , , .

, , IIS, Windows (Active Directory Windows). " ".

http://custombasicauth.codeplex.com/ - , , . , -. http://custombasicauth.codeplex.com/SourceControl/changeset/view/53965#183990 http://custombasicauth.codeplex.com/SourceControl/changeset/view/53965#183995 , Base64 ASP.NET. HttpModule, /, AppSettings, . , 401 Authenticate, EndRequest - , FormsAuthenticationModule 401 302 . <location>, Forms Auth Basic Auth, . " ", Basic Auth " ". 2/3 , . , , , GitHub, . , , , , .

, http://custombasicauth.codeplex.com/. IIS.: D

+1

/http:.htacces .htpasswd, http://www.helicontech.com/ape/ ( 3- ), Helicon Ape - IIS, htacess/htpasswd.

. '.htpasswd' , w/username: md5. MD5 -, http://aspirine.org/htpasswd_en.html . :

apple:$apr1$4SZNOvdK$P7b6AkKVw.gXfdxlcvENp1
orange:$apr1$fvcwHIlc$OF7Mkhv8JfELDJnRmsku7/
banana:$apr1$IoSJc9GM$xtSY4nI3KCnTtjWKwxhmx/

/ :

apple:sauce
orange:juice
banana:split
0

All Articles