Blocking .exe/.com requests

Bug reports and enhancement requests
Post Reply
thehawk
Posts: 2
Joined: Sun Jul 25, 2010 10:32 am

Blocking .exe/.com requests

Post by thehawk »

Hi.

Today i entered a website which had an img src tag linking to an .exe file which my antivirus blocked as it was malware. How possible would it be for NoScript to take care of such requests, hence blocking .exe/.com/.bat and any other executable files in the same way .js are blocked?

Thank you.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Alan Baxter
Ambassador
Posts: 1586
Joined: Fri Mar 20, 2009 4:47 am
Location: Colorado, USA

Re: Blocking .exe/.com requests

Post by Alan Baxter »

If I recall correctly, Firefox respects Windows XP's security settings. It already prevents applications and other unsafe files from being automatically downloaded or executed. The default settings require the user to explicitly allow those actions. It may be possible for you to modify your Internet settings so that these kinds of files are automatically rejected without you even getting a prompt. Something like checking Disable for both
Control Panel > Internet Options > Security > Internet > Custom Level > Launching applications and unsafe files
Control Panel > Internet Options > Security > Internet > Custom Level > Launching programs and files in an IFRAME


I'll try that now and see it it works.

Edit: Yup, even if I explicitly allow the download when prompted, Firefox quietly cancels the download.
http://kb.mozillazine.org/Unable_to_sav ... _-_Windows
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
thehawk
Posts: 2
Joined: Sun Jul 25, 2010 10:32 am

Re: Blocking .exe/.com requests

Post by thehawk »

Thanks Alan, very kind, I took note of these two settings. Strangely enough I always thought they applied only to IE :oops:

They were set to PROMPT. So I believe the reason why my AntiVirus came up is because I have this additional layer in my system. Without it I would have gotten a prompt?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Alan Baxter
Ambassador
Posts: 1586
Joined: Fri Mar 20, 2009 4:47 am
Location: Colorado, USA

Re: Blocking .exe/.com requests

Post by Alan Baxter »

thehawk wrote:Thanks Alan, very kind, I took note of these two settings. Strangely enough I always thought they applied only to IE :oops:
You're welcome. Don't be embarrassed. I think Firefox quietly started respecting that setting with Fx 3.5. It's controversial, partly because most people don't know about it and and an IE Internet Zone security setting of High completely prevents downloading .exe files. Most people want to be able to do that, and when it unexpectedly but quietly doesn't work -- for some reason unknown to them -- it's a bit disconcerting.
They were set to PROMPT. So I believe the reason why my AntiVirus came up is because I have this additional layer in my system. Without it I would have gotten a prompt?
Yes.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Post Reply