Isn't optifine safe?
Optifine is safe. It is usually in a .jar file format. .jar files are executable, like .exe files. That is your OS and/or browser security settings letting you know this.
"We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far."