Login Register


SSL/TLS Image Proxy? filter_list
Author
Message
SSL/TLS Image Proxy? #1
I see a lot of images in various signatures that are not using https (SSL/TLS) which results in my browser not showing the green lock. I have an idea.

PHP Code:
<?php // Image Proxy $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'http://insecure.imagehost.com/image.png', CURLOPT_USERAGENT => 'Sinisterly Image Proxy' )); $resp = curl_exec($curl); curl_close($curl); echo $resp ?>

Of course that's a very basic image proxy (which I hope I wrote correctly, I can't test right now) and requires things to be preset. Esentially all images would route through the server to the user. If you are worried abuse with IP Loggers (disclosing your backend) then you can even route PHP CURL through Tor (I do that on one of my sites). The script could be modified with caching (reduce requests by storing proxied images for 6 hours then clearing them).It can be modified to suit your needs.

What are you thoughts?








Users browsing this thread: 1 Guest(s)