
from urllib.parse import urlparse


BAD_PATHS = [
    '/admin/',
    '/dbadmin/',
]


def should_be_rejected(log_line):
    if urlparse(log_line.url).path in BAD_PATHS:
        return True

    return False


from urllib.parse import urlparse


BAD_PATHS = [
    '/admin/',
    '/dbadmin/',
    '/myadmin/',
    '/mysqladmin/',
    '/mysql-admin/',
    '/mysqlmanager/',
    '/sqlmanager/',
    '/sqlweb/',
    '/webdb/',
    '/websql/',
]


def should_be_rejected(log_line):
    if urlparse(log_line.url).path in BAD_PATHS:
        return True

    return False

Add more to the list of bad paths
Add more to the list of bad paths

  
  from urllib.parse import urlparse
  
  
  BAD_PATHS = [
      '/admin/',
      '/dbadmin/',
+     '/myadmin/',
+     '/mysqladmin/',
+     '/mysql-admin/',
+     '/mysqlmanager/',
+     '/sqlmanager/',
+     '/sqlweb/',
+     '/webdb/',
+     '/websql/',
  ]
  
  
  def should_be_rejected(log_line):
      if urlparse(log_line.url).path in BAD_PATHS:
          return True
  
      return False
  
Add more to the list of bad paths
## Code Before:

from urllib.parse import urlparse


BAD_PATHS = [
    '/admin/',
    '/dbadmin/',
]


def should_be_rejected(log_line):
    if urlparse(log_line.url).path in BAD_PATHS:
        return True

    return False

## Instruction:
Add more to the list of bad paths
## Code After:

from urllib.parse import urlparse


BAD_PATHS = [
    '/admin/',
    '/dbadmin/',
    '/myadmin/',
    '/mysqladmin/',
    '/mysql-admin/',
    '/mysqlmanager/',
    '/sqlmanager/',
    '/sqlweb/',
    '/webdb/',
    '/websql/',
]


def should_be_rejected(log_line):
    if urlparse(log_line.url).path in BAD_PATHS:
        return True

    return False
