Gmail will soon block JavaScript file attachments to reduce malicious attacks Google Gmail is getting more serious about cybersecurity matters. Starting next month, Gmail will start blocking Javascript attachments in emails for security reasons.