Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

How do I set a file to download instead of execute?

I have a .pcf file that I need the end user to be able to download, but the server tries to execute it resulting in page cannot be displayed. Would I setup a Mime type in IIS?
0
jsmithswi
Asked:
jsmithswi
  • 2
  • 2
2 Solutions
 
torimarCommented:
Yes. Add a MIME type as described here: http://support.microsoft.com/default.aspx?scid=kb;en-us;326965

Then restart IIS.
0
 
Pete LongConsultantCommented:
Hello jsmithswi,

put the VPN config file in a zip folder? - though to be honest I wouldnt distribute this way!! a pcf file is easy to reverse engneer to get the VPN shared secret see for yourself
http://coreygilmore.com/projects/decrypt-cisco-vpn-password/?encpw=8D526BC58A4E7F8F2633C3A3520397D0F1227EE91471CB7AD848890EDAB918ECC6F469ECF258BA1976CB5A0244C171A2FF4388120A0288C1

Password protect the ZIP file!!!

Regards,

PeteLong
0
 
jsmithswiAuthor Commented:
I tried that and it displays the file content, but how would I make it execute the prompt to save or open the file? Thanks.
0
 
jsmithswiAuthor Commented:
That's pretty scary. I was trying to automate everything, but it looks like a little extra effort really makes up for it in security. The actual file names are 64 characters long, but I'm sure there are methods of getting past the directory listing denied to get the file names. Protected zip sounds like the best solution in this case.
Thanks a lot.
0
 
Pete LongConsultantCommented:
ThanQ
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now