Exemplo n.º 1
0
def upload(request):
    """Check Tor status; redirect to hidden service if OK"""
    if torcheck.is_using_tor(request):
        # redirect to hidden service
        return redirect(settings.HIDDEN_SERVICE_ADDR)
    else:
        return render_to_response("upload_notor.html",
                RequestContext(request, {}))
Exemplo n.º 2
0
def upload(request):
    """Check Tor status; redirect to hidden service if OK"""
    if torcheck.is_using_tor(request):
        # redirect to hidden service
        return redirect(settings.HIDDEN_SERVICE_ADDR)
    else:
        return render_to_response("upload_notor.html",
                                  RequestContext(request, {}))
Exemplo n.º 3
0
def upload():
    '''
    Checks if this request came over the Tor network.
    
    If so, redirects to hidden service.
    Otherwise, displays a warning and a link to the docs on safe uploading.
    '''
    if torcheck.is_using_tor(request):
        # redirect to hidden service
        return redirect("http://p4vd2mahbs7pzaww.onion/")
    else:
        return render_template("upload.html")