So, I have a website in django, how to add restrictions that request to the website can only be made through a browser and not from terminal or scripts.
I want to implement this because in my website I'm using
def ip(request):
a = request.META.get('HTTP_X_FORWARDED_FOR')
....