December 2018
Intermediate to advanced
318 pages
8h 28m
English
We will use Alexa's website ranking system to help us discern which URLs are malicious and which are benign. Alexa ranks websites based on their popularity by looking at the number of individuals who visit the site. We use Alexa's popularity rank for each website. The basic idea for using Alexa for this purpose is that highly popular sites are usually non-malicious.
The top 10 most popular websites on Alexa are as follows:

The following Python function is used to detect the popularity:
def site_popularity_index(host_name): xmlpath='http://data.alexa.com/data?cli=10&dat=snbamz&url='+host_name try: get_xml= urllib2.urlopen(xmlpath) ...
Read now
Unlock full access