mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
[PixivBridge] Add cookie auth and options (#3653)
* added cookie mgmt and support for issue https://github.com/RSS-Bridge/rss-bridge/issues/2759 * added image proxy option * + mature and ai options, + cookie doc * mention doc * check cookie is auth'd
This commit is contained in:
parent
dbe37cc302
commit
b3a7842448
2 changed files with 205 additions and 19 deletions
23
docs/10_Bridge_Specific/PixivBridge.md
Normal file
23
docs/10_Bridge_Specific/PixivBridge.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
PixivBridge
|
||||
===============
|
||||
|
||||
# Image proxy
|
||||
As Pixiv requires images to be loaded with the `Referer "https://www.pixiv.net/"` header set, caching or image proxy is required to use this bridge.
|
||||
|
||||
To turn off image caching, set the `proxy_url` value in this bridge's configuration section of `config.ini.php` to the url of the proxy. The bridge will then use the proxy in this format (essentially replacing `https://i.pximg.net` with the proxy):
|
||||
|
||||
Before: `https://i.pximg.net/img-original/img/0000/00/00/00/00/00/12345678_p0.png`
|
||||
|
||||
After: `https://proxy.example.com/img-original/img/0000/00/00/00/00/00/12345678_p0.png`
|
||||
|
||||
```
|
||||
proxy_url = "https://proxy.example.com"
|
||||
```
|
||||
|
||||
# Authentication
|
||||
Authentication is required to view and search R-18+ and non-public images. To enable this, set the following in this bridge's configuration in `config.ini.php`.
|
||||
|
||||
```
|
||||
; from cookie "PHPSESSID". Recommend to get in incognito browser.
|
||||
cookie = "00000000_hashedsessionidhere"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue