This project serves as a proxy server for Reddit.com. It fetches content from Reddit, modifies specific text within the HTML, and sends the modified content to the client. The main features include appending a "™" symbol to six-letter words and ensuring all internal navigation links point to the proxy server.
- URL Validation: Checks if the provided URL is a valid Reddit URL.
- User-Agent Specification: Adds a User-Agent string to request headers for compatibility.
- Content Modification: Appends the "™" symbol to six-letter words within text content, excluding certain HTML elements like buttons, inputs, and scripts to maintain site functionality.
- Internal Navigation Handling: Modifies internal navigation links to ensure that all navigation is handled through the proxy server.
Clone this repository to your local machine.
Make sure to have the required dependencies, such as the appropriate .NET SDK (.Net 6.0).
Start the server, and it will listen for requests to proxy Reddit content.
Use the proxy URL with the appropriate query parameters to view modified Reddit content. For viewing https://reddit.com/r/popular , just type https://localhost:yourport/r/popular
Open a terminal and navigate to the directory containing the Dockerfile.
Use the following bash command to build the Docker image:
docker build -t reddit-proxy .
For running:
docker run -p 80:80 -p 443:443 reddit-proxy