Skip to content

a simple python script using requests and bs4 to detect mixed content

Notifications You must be signed in to change notification settings

assafv/isMixedContent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mixed Content Detector

A simple Python script to detect mixed content in URLs using requests and BeautifulSoup.

Table of Contents

Introduction

Mixed content occurs when an HTTPS website references insecure (HTTP) resources. Browsers prevent an HTTPS website from loading most insecure resources to maintain the security of the page. This script helps identify and fix or replace mixed content, ensuring your website remains secure.

Features

  • Efficiently detects mixed content in given URLs.
  • Uses the power of requests and BeautifulSoup for web scraping.
  • Easy to use and integrate into existing workflows.

Installation

  1. Clone the repository:

    git clone https://github.com/assafv/isMixedContent.git
    cd isMixedContent
  2. Create a virtual environment (optional but recommended):

    python3 -m venv env
    source env/bin/activate  # On Windows use `env\Scripts\activate`
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Create a text file named urls.txt and populate it with the URLs you want to check, each on a new line.

  2. Run the script:

    python detect_mixed_content.py

Example

Here's an example of how to use the script:

  1. Add URLs to urls.txt:

    https://example.com
    https://anotherexample.com
    
  2. Run the script:

    python detect_mixed_content.py
  3. The script will output any mixed content found in the URLs provided.

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.

License

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

About

a simple python script using requests and bs4 to detect mixed content

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages