Prevent the user with session from entering the URL in browser and access the data in Python Django Application
I achieve it by 
if 'HTTP_REFERER' not in request.META:
it not exist's when hit directly from browser url.
I have a Python Django web application.
In Get method how to prevent the user from entering url and access the Data.
How do i know weather the url accessed by Code or Browser.
I tried with sessionid in Cookie, But if session exist's it allow to access the data.
Thanks.