Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool IsPiracySite(string url,System.Windows.Forms WebBrowser WebBrowserObject) {
- string tld = ((url.Replace("http://","").Replace("https://",""))); //Get the TLD, ignoring protocol and subdirectory
- if (URLBlackList.Contains(tld.Remove(tld.IndexOf('/'),tld.Length-1))){ //Assumes a data structure containing blacklisted URLs
- WebBrowserObject.DOM.Navigate("http://siteadvisor.mcafee.com/rating/" + tld.Remove(tld.IndexOf('/'), tld.Length - 1) + "/"); }}
Advertisement
Add Comment
Please, Sign In to add comment