Skip to content

A simple Python script to check if a website URL is secure by verifying if it uses HTTPS. This project uses the `requests` library to send an HTTP request to the provided URL and checks the response.

License

Notifications You must be signed in to change notification settings

liviu-b/url_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

URL Checker

A simple Python script to check if a website URL is secure by verifying if it uses HTTPS. This project uses the requests library to send an HTTP request to the provided URL and checks the response.

Features

  • Check if a website uses HTTPS
  • Handle exceptions for non-responsive websites or bad URLs
  • Simple command-line interface for URL input

Requirements

  • Python 3.x
  • requests library

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/url-checker.git
    
  2. Navigate to the project directory:

    cd url-checker
    
  3. Create and activate a virtual environment (optional but recommended):

    python -m venv venv
    venv\Scripts\activate
    
  4. Install the required packages:

    pip install -r requirements.txt
    
    

Usage

To run the script, use the following command in your terminal:

  1. To run the script, use the following command in your terminal:

    python index.py
    
  2. You will be prompted to enter a website URL:

    Enter the website URL: https://example.com
    
  3. The script will then check if the website is secure (uses HTTPS) and display a message:

    https://example.com is a secure website.
    
    

LICENSE

This project is licensed under the MIT License - see the LICENSE file for details.

About

A simple Python script to check if a website URL is secure by verifying if it uses HTTPS. This project uses the `requests` library to send an HTTP request to the provided URL and checks the response.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages