Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How do I prevent a website from opening another window

more options

A couple of websites I occasionally visit open up a second window to a spam website. I have put an entry in my Hosts file to prevent Firefox from connecting to the spam websites, so the second window is empty. However, it's still a little annoying.

I have pop-up blocking turned on. Is there anyway to completely block the opening of the second window?

If not, why not?

A couple of websites I occasionally visit open up a second window to a spam website. I have put an entry in my Hosts file to prevent Firefox from connecting to the spam websites, so the second window is empty. However, it's still a little annoying. I have pop-up blocking turned on. Is there anyway to completely block the opening of the second window? If not, why not?

All Replies (2)

more options
more options

Thank you for taking the time to reply. I really do appreciate it.

Unfortunately, the link you posted tells me exactly nothing. My question is "How do I prevent a website from opening unwanted windows". These are full Firefox windows, just like you would get if you right clicked on a link and selected "open in a new window".

There are only two possible answers:

(A) To block unwanted windows, do this ________ (insert answer)

or

(B) It's not possible.

If the answer is (B) then the follow-up question is -- Why Not?