I am working on django and came across a problem that is I have a url for example

```
http://domain.com/trial/1/

```

now the problem is that the when i change the url from 1 to 2, if it is not the authenticated user then the page should not load instead show an error message but instead it displays the page. How can I block the url from the unauthenticated user.

I searched for the solution but did not find it.

Hope you understood the problem

Thanks