2

i have an ASP MVC web site that is published.

and i adjusted <security allowRemoteAccess="yes"/> in webconfig

and now anybody can access Elmah page

by saying that i didnt use ASP.Net Identity,how can i secure ELmah Page?

AliBoronsi
  • 764
  • 1
  • 12
  • 19

1 Answers1

0

I wrote a blog post a couple of months ago, that explains everything you need to know: ELMAH security and allowRemoteAccess explained. Basically, you will need to install the Elmah.MVC package and add app settings like this:

<appSettings>
    <add key="elmah.mvc.requiresAuthentication" value="true" />
    <add key="elmah.mvc.allowedRoles" value="Admin" />
    <add key="elmah.mvc.allowedUsers" value="Thomas" />
</appSettings>
ThomasArdal
  • 4,999
  • 4
  • 33
  • 73