I am new to JSF and writing first simply jsf web app.
URL with .jsf are mapping to .xhtml files in WebContent but why I can open .xhtml in web browser with all jsf t
You could add a security constraint to your web.xml blocking all requests to *.xhtml.
web.xml
*.xhtml
Restrict raw XHTML Documents XHTML *.xhtml