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.
- Check if a website uses HTTPS
- Handle exceptions for non-responsive websites or bad URLs
- Simple command-line interface for URL input
- Python 3.x
requestslibrary
-
Clone the repository:
git clone https://github.com/yourusername/url-checker.git
-
Navigate to the project directory:
cd url-checker -
Create and activate a virtual environment (optional but recommended):
python -m venv venv venv\Scripts\activate
-
Install the required packages:
pip install -r requirements.txt
To run the script, use the following command in your terminal:
-
To run the script, use the following command in your terminal:
python index.py
-
You will be prompted to enter a website URL:
Enter the website URL: https://example.com
-
The script will then check if the website is secure (uses HTTPS) and display a message:
https://example.com is a secure website.
This project is licensed under the MIT License - see the LICENSE file for details.