This is a Flask web application designed to serve two main functionalities: logging IP addresses via Discord webhooks and blurring images provided by URLs. It also integrates with Telegraph for file uploads and hosting.
-
IP Logging via Discord Webhooks: This app can send IP addresses, along with additional location information, to a Discord channel of your choice using Discord webhooks.
-
Image Blurring: Given an image URL, the app can apply a Gaussian blur filter to the image. This feature supports both static images and animated GIFs.
-
Telegraph Integration: Files uploaded through the app are hosted on Telegraph, allowing for easy sharing of media content.
- Python 3
- Flask
- requests
- aiohttp
- Pillow (PIL)
-
Clone this repository to your local machine:
git clone https://github.com/your-username/your-repo.git
-
Install the required dependencies using pip:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Visit
https://localhost:5000
in your web browser to access the application. -
Use the
/hidden-grabber
endpoint to access the IP logging feature. Make sure to set up a Discord webhook and provide the webhook token/url to enable logging.
You can directly upload files to be hosted on Telegraph using the /upload
endpoint.
exemple :
import requests
url = 'https://localhost:5000/upload'
file_path = '/path/to/your/file.jpg'
with open(file_path, 'rb') as file:
files = {'file': file}
response = requests.post(url, files=files)
# Print the response content
print(response.json())
This project is licensed under the MIT License. See the LICENSE file for details.