Reply To: Block Direct Browser Url Access in a Page
Hi Christian. First of all thanks for your answer.
Even you saying you’re not sure, you got the point and gave an idea.
My webapp is almost full ajax, with few “h:links”, so that idea of blocking get requests is interesting.
Now let me try to clarify my usecase, i have a mapping /home, in this page there is a list of “objects”, and each row has a p:commandButton (ajax) with an action that prepares the next view /panel and returns a “pretty:panel” that redirects to the /painel page and show that object info.
And thats where i would like the “blocking”, i dont want the user to type https://mywebsite.com/painel directly in the browser, i want just allow users that clicked that p:commandButton in the /home and got redirected to the /panel.
Was i more clear now?
And following your idea, that was another question, my project has the rewrite maven entries, but i dont think im using it fully, i think im just using the prettyfaces, i have a prettyconfig.xml file and the default configuration.
Could you give me an example of that “GET request blocking”?
Obs: Sorry about my english, still learning.
Thank you very much.