MyGit

wasi-master/13ft

Fork: 127 Star: 2184 (更新于 2024-08-21 23:05:48)

license: MIT

Language: Python .

My own custom 12ft.io replacement

最后发布版本: v0.3.2 ( 2024-08-17 22:22:26)

官方网址 GitHub网址

13 Feet Ladder

A site similar to 12ft.io but is self hosted and works with websites that 12ft.io doesn't work with.

What is this?

This is a simple self hosted server that has a simple but powerful interface to block ads, paywalls, and other nonsense. Specially for sites like medium, new york times which have paid articles that you normally cannot read. Now I do want you to support the creators you benefit from but if you just wanna see one single article and move on with your day then this might be helpful

How does it work?

It pretends to be GoogleBot (Google's web crawler) and gets the same content that google will get. Google gets the whole page so that the content of the article can be indexed properly and this takes advantage of that.

How do I use it?

Using Docker

Requirements:

  • docker
  • Docker Compose (available as docker compose)

First, clone the repo to your machine then run the following commands:

git clone https://github.com/wasi-master/13ft.git
cd 13ft
docker compose up

The image is also available from ghcr.io so the command docker pull ghcr.io/wasi-master/13ft:latest also works.

Standard Python script

First, make sure you have python installed on your machine. Next, clone the git repo. Then go to a terminal (Command Prompt on Windows, Terminal on Mac) and run the following command:

From the git cloned directory on your computer:

cd app/
python -m pip install -r requirements.txt

If that doesn't work retry but replace python with py, then try python3, then try py3

Then run portable.py, click this link for a tutorial on how to run python scripts.

python portable.py

Then follow these simple steps

Customizing listening host and port, Systemd / Reverse-proxy example

Installation using venv and running under specific bind address / port

python3 -m venv venv
source venv/bin/activate
python -m pip install -r requirements.txt
FLASK_APP=app/portable.py flask run --host=127.0.0.1 --port=9982

Systemd Service

/lib/systemd/system/13ft.service
[Unit]
Description=13ft Flask Service
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
Restart=on-failure
RestartSec=10
User=www-data
Group=www-data
Environment=APP_PATH=/var/www/paywall-break
Environment=FLASK_APP=app/portable.py

ExecStart=/bin/bash -c "cd ${APP_PATH};${APP_PATH}/venv/bin/flask run --host=127.0.0.1 --port=22113"

# Make sure stderr/stdout is captured in the systemd journal.
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target

Reverse Proxy

<VirtualHost *:22114>
    ErrorLog ${APACHE_LOG_DIR}/13ft-error.log
    CustomLog ${APACHE_LOG_DIR}/13ft-access.log combined

    ProxyRequests Off

    SSLEngine on
    SSLCertificateFile      /etc/ssl/certs/ssl-cert-snakeoil.pem
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
    Header always set Strict-Transport-Security "max-age=63072000"
    SSLProtocol             all -SSLv3 -TLSv1 -TLSv1.1

    SSLHonorCipherOrder     off
    SSLSessionTickets       off

    Protocols h2 http/1.1

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>


    ProxyPass / http://127.0.0.1:22113/
    ProxyPassReverse / http://127.0.0.1:22113/


</VirtualHost>

Step 1

step 1 screenshot Go to the website at the url shown in the console

Step 2

step 2 screenshot Click on the input box

Step 3

step 3 screenshot Paste your desired url

Step 4

step 4 screenshot Voilà you now have bypassed the paywall and ads

Alternative method

You can also append the url at the end of the link and it will also work. (e.g if your server is running at http://127.0.0.1:5000 then you can go to http://127.0.0.1:5000/https://example.com and it will read out the contents of https://example.com)

This feature is possible thanks to atcasanova

最近版本更新:(数据更新于 2024-08-21 22:41:37)

2024-08-17 22:22:26 v0.3.2

2024-08-14 17:49:53 v0.3.1

2024-08-14 16:56:11 v0.3.0

2023-11-02 01:41:22 v0.2.3

2023-11-01 01:52:13 v0.2.2

2023-10-31 20:51:15 v0.2.1

2023-06-01 11:35:48 v0.2.0

2022-12-18 11:06:24 v0.1.1

2022-12-17 23:35:23 v0.1.0

主题(topics):

paywall-blocker, paywall-bypass, paywall-bypasser, python, python3, self-hosted, selfhost, selfhosted

wasi-master/13ft同语言 Python最近更新仓库

2024-09-19 07:20:11 ultralytics/ultralytics

2024-09-18 18:07:12 jxxghp/MoviePilot

2024-09-18 08:08:50 mvdctop/Movie_Data_Capture

2024-09-17 21:01:45 Zipstack/unstract

2024-09-17 20:13:22 linruowuyin/Fhoe-Rail

2024-09-17 15:04:22 mikumifa/biliTickerBuy