I have integrated my Spring MVC application Shiro for security reasons.
My all urls are working fine, but i have few html pages which can be directly accessed without being hit on my controllers.
How can i protect those pages, meaning if user is not logged in to application, and tries to open html page, he should be redirected to login page.
<filter>
<filter-name>shiroFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy
</filter-class>
<init-param>
<param-name>targetFilterLifecycle</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>shiroFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Application url
http://ip:port - works fine, redirects to login page
http://ip:port/html/ - opens html pages
How can i protect this.