Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Edit</strong>: Sorry, I misunderstood your question. I thought you were looking for an alternative to Requestmaps. That is why I originally suggested <a href="http://www.grails.org/AcegiSecurity+Plugin+-+Basic+Tutorial+with+Annotations" rel="nofollow noreferrer" title="securing the controllers with annotations">securing the controllers with annotations.</a></p> <p>If you want to use Requestmaps you could do the following:</p> <ol> <li><p>Create a new Requestmap that looks like this:<br> URL pattern = <code>/login/**</code><br> Role = <code>IS_AUTHENTICATED_ANONYMOUSLY</code> </p></li> <li><p>To restrict access to the rest of the site create another requestmap entry which matches all the urls:<br> URL pattern = <code>/*/**</code><br> Role = <code>ROLE_USER</code> (you could use any other role you like)</p></li> </ol> <p><code>IS_AUTHENTICATED_ANONYMOUSLY</code> means that anyone can access the matched URLs.The first rule is more specific and therefore should overwrite the second and more general rule.</p> <p>You can look at <a href="http://grails.org/AcegiSecurity%20Plugin%20-%20Securing%20URLs" rel="nofollow noreferrer">AcegiSecurity Plugin - Securing URLs</a> for more information.</p> <p>Regarding the site's SEO. AFAIK search engines cannot access sites that need authentication. That is why sites like Experts Exchange use <a href="http://blog.webdistortion.com/2008/04/16/experts-exchange-stop-the-cloaking-before-its-too-late/" rel="nofollow noreferrer">sly tricks</a> to get indexed by Google. </p> <p>You could choose to give anonymous users read access while requiring a login for writing (like SO does). This would allow your site to be indexed by search engine bots.</p> <p>I hope this helps!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload