When you’re in school/college in computer lab some time we can’t access some of websites because administrator blocked those websites and we can block child’s laptops too. Here we can see, who they doing these type of process by using python and without python code.

Blocking website without python

Host file use to map a connection between an IP address and domain names. We can’t directly edit in the hosts file so open the notepad in run as administrator and now open hosts file in C:\Windows\System32\drivers\etc\hosts this location and you can able to edit. Copy the localhost address and paste in new line and type which website you want to block. Save the file and close it then open the certain website you can’t access.

Blocking websites using python

It’s a simple code to block certain website.

The OS module in Python provides the functions to create, remove, fetching, change and identify the directory (folder), etc. All we need is import os to do these tasks.

To show the Current Working Directory : os.getcwd().

To Make a New Directory : os.mkdir().

To Change a Directory : os.chdir().

To Remove a Directory : os.rmdir().

To List out the Directories: os.listdir().

To Rename a Directory : os.rename().

OUTPUT

HTTP is a set of protocols designed to enable communication between clients and servers. First and foremost need to install requests package using !pip install requests command in juypter notebook.

Methods :

GET - Used to retrieve information from the server by using URL

POST - Request the server to…

Socket programming is a way of connecting two nodes on a network to communicate with each other.

To begin with socket programming, beforehand we need to install socket package. Either you can use pip install socket command in command prompt or you can use juypter notebook by using !pip install socket.

Server.py

Client.py

Amazon S3 is an object storage service that offers industry-leading scalability, data availability, security, and performance. This means customers of all sizes and industries can use it to store and protect any amount of data for a range of use cases, such as data lakes, websites, etc.,

CONCEPTS

Buckets…

Sowmiya K

Working for HCL as a Software Engineer | Information Technology | Interested in Networking | Cloud | Python| Data Analytics

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store