tor browser with java script security for viewing url / link with zero chance to get tracked , since tor use 5 layers of random ips and randomize the browser fingerprint , regards files there is no way to know if its safe or not , the best way is to get a online VPS or virtual machine software with internet connection disabled .