Python Code 1-
You work in the IT team of Jules Ostin Corp. Jules Ostin Corp uses tools provided by Windows Server to block the banned website accesses for the entire domain but there are certain special machines which have been kept out of the network admin due to certain special requirements of host applications on those machines to connect to internet bypassing firewall. Your manager wants you to implement locally same policies that windows server and firewall implements but do it locally. One of those policies is to block certain websites with potential to introduce security vulnerabilities into the machines or social media websites per the policy of Senior Management. You are provided by your manager with a list of blocked websites for the users.
websites_block=[“
www.
youtube.com
“, “youtube.com”, “
www.
facebook.com
“, “facebook.com”, “
www.
twitter.com
”, “twitter.com”, “
www.
gmail.com
”, “gmail.com”, “
www.linkein.com
”, “
linkedin.com
”, “
www.
amazon.com
”, “amazon.com”, “
www.addictinggames.com
”, “
www.espn.com
” ]
Write a program implementing the following tasks:
i) Ask user to enter the website he/she wants to visit in the format
www.website.com
ii) Using a loop, go over the list of blocked websites and determine if the the website is allowed or not. Display the decision on the screen as ‘Website Allowed’ or ‘Sorry, Website access not allowed’.
Python code 2-
Write a python program to create a Password validity checker.
A password validity checker program basically checks if a password is valid or not based on the password policies mention below:
Password should not contain any space.
Password should contain at least one digit(0-9).
Password length should be between 8 to 15 characters.
Password should contain at least one lowercase letter(a-z).
Password should contain at least one uppercase letter(A-Z).
Password should contain at least one special character ( @, #, %, &, !, $, etc…).