Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
is there a way to detect the opened tabs in a browser? If the user has example.com open in a tab, then execute some code. The websites names that it needs to detect are stored in a text file.

The reason why I am asking this is because I am creating an antivirus. I want to warn the user if the user visits dangerous websites(unsafe or malware).

I read some articles about packet filtering but I don't know how to start.

Thanks.



What I have tried:

I have tried using the Registry but it didn't work.
Posted
Updated 21-Oct-20 9:54am
Comments
Sandeep Mewara 21-Oct-20 16:04pm    
For a security software, trying to get hold of tabs of all the browsers is a long shot to ask for from users.
You should find another way to provide the alerts you intend to.

1 solution

You can't do it the way you're thinking because there is no uniform or reliable way to inspect running instances of any browser.

You'd have to write your own proxy server that every browser on the machine would have to go through to get to the internet and inspect the traffic that way.

Oh, and how are you going to know what is a "safe" website and what isn't?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900