Skip to content

A tiny Flask app that captures and displays every HTTP request (GET/POST/PUT/PATCH/DELETE), including timestamp, client IP, User‑Agent, headers, and a body preview—perfect for testing whether a client (e.g., Copilot) actually fetches your URL.

License

Notifications You must be signed in to change notification settings

chienhsiang-hung/copilot-request-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copilot Request Detector

alt text

This is a simple Flask-based server designed to help you detect whether GitHub Copilot (or any other automated tool) sends HTTP requests to a given URL. It logs incoming requests with the client's IP address and timestamp.

🧠 Purpose

You can use this server to:

  • Test if Copilot accesses external URLs during code generation or suggestion.
  • Monitor request activity from any client.
  • Log basic request metadata for analysis.

🚀 How to Deploy on GitHub Codespaces

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.py
  1. Create a GitHub repository and name it copilot-request-detector.

  2. Add the following files:

    • app.py (see below)
    • requirements.txt
  3. Install dependencies:

    pip install -r requirements.txt

About

A tiny Flask app that captures and displays every HTTP request (GET/POST/PUT/PATCH/DELETE), including timestamp, client IP, User‑Agent, headers, and a body preview—perfect for testing whether a client (e.g., Copilot) actually fetches your URL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages