mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-17 05:54:18 +02:00
Deploying to gh-pages from @ RSS-Bridge/rss-bridge@0a8fe57003 🚀
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
<div class="Page__header">
|
||||
<h1><a href="../For_Hosts/index.html">For Hosts</a> <svg class="Page__header--separator" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 477.175 477.175"><path d="M360.73 229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1 0s-5.3 13.8 0 19.1l215.5 215.5-215.5 215.5c-5.3 5.3-5.3 13.8 0 19.1 2.6 2.6 6.1 4 9.5 4 3.4 0 6.9-1.3 9.5-4l225.1-225.1c5.3-5.2 5.3-13.8.1-19z"/></svg> <a href="../For_Hosts/Whitelisting.html">Whitelisting</a></h1>
|
||||
<span class="ModifiedDate">
|
||||
June 8, 2023 at 2:37 PM </span>
|
||||
June 10, 2023 at 6:16 PM </span>
|
||||
<span class="EditOn">
|
||||
<a href="https://github.com/RSS-Bridge/rss-bridge/tree/master/docs/03_For_Hosts/05_Whitelisting.md" target="_blank">
|
||||
Edit on GitHub </a>
|
||||
@@ -108,31 +108,19 @@
|
||||
</div>
|
||||
|
||||
<div class="s-content">
|
||||
<p>RSS-Bridge supports whitelists in order to limit the available bridges on your web server.</p>
|
||||
<p>A default whitelist file (<code>whitelist.default.txt</code>) is shipped with RSS-Bridge. Please do not edit this file, as it gets replaced when upgrading RSS-Bridge!</p>
|
||||
<p>You should, however, use this file as template to create your own whitelist (or leave it as is, to keep the default bridges). In order to create your own whitelist perform following actions:</p>
|
||||
<ul>
|
||||
<li>Copy the file <code>whitelist.default.txt</code> in the RSS-Bridge root folder</li>
|
||||
<li>Rename the new file to <code>whitelist.txt</code>
|
||||
</li>
|
||||
<li>Change the lines to satisfy your requirements</li>
|
||||
</ul>
|
||||
<p>RSS-Bridge will automatically detect the <code>whitelist.txt</code> and use it. If the file doesn’t exist it will default to <code>whitelist.default.txt</code> automatically.</p>
|
||||
<h1><a id="specific-whitelisting" href="#specific-whitelisting" class="Permalink" aria-hidden="true" title="Permalink">#</a>Specific whitelisting</h1>
|
||||
<p>In order to specifically whitelist bridges, open <code>whitelist.txt</code> and add one line for each bridge you want to show. Make sure you use normal <a href="https://en.wikipedia.org/wiki/Newline" title="Line-feed" class="Link--external" rel="noopener noreferrer">line-feeds</a> at the end of a line (LF not <a href="https://en.wikipedia.org/wiki/Carriage_return" title="Carriage-return line-feed" class="Link--external" rel="noopener noreferrer">CRLF</a>). The bridge name must match the filename of the bridge in the bridges folder (see <a href="../For_Developers/Folder_structure.html">folder structure</a>). The name may or may not include the ‘Bridge’ part.</p>
|
||||
<p><strong>Examples</strong>:</p>
|
||||
<pre><code class="language-TEXT">FacebookBridge
|
||||
WikipediaBridge
|
||||
TwitterBridge
|
||||
<p>Modify <code>config.ini.php</code> to limit available bridges.</p>
|
||||
<h2><a id="enable-all-bridges" href="#enable-all-bridges" class="Permalink" aria-hidden="true" title="Permalink">#</a>Enable all bridges</h2>
|
||||
<pre><code>enabled_bridges[] = *
|
||||
</code></pre>
|
||||
<p>or</p>
|
||||
<pre><code class="language-TEXT">Facebook
|
||||
Wikipedia
|
||||
Twitter
|
||||
<h2><a id="enable-some-bridges" href="#enable-some-bridges" class="Permalink" aria-hidden="true" title="Permalink">#</a>Enable some bridges</h2>
|
||||
<pre><code>enabled_bridges[] = TwitchBridge
|
||||
enabled_bridges[] = GettrBridge
|
||||
</code></pre>
|
||||
<h1><a id="global-whitelisting" href="#global-whitelisting" class="Permalink" aria-hidden="true" title="Permalink">#</a>Global whitelisting</h1>
|
||||
<p>In order to globally whitelist all bridges, open the <code>whitelist.txt</code> file, remove all contents and just write an asterisk <code>*</code> into the file (only this one character).</p>
|
||||
<pre><code class="language-TEXT">*
|
||||
<h2><a id="enable-all-bridges-legacy-shortcut" href="#enable-all-bridges-legacy-shortcut" class="Permalink" aria-hidden="true" title="Permalink">#</a>Enable all bridges (legacy shortcut)</h2>
|
||||
<pre><code>echo '*' > whitelist.txt
|
||||
</code></pre>
|
||||
<h2><a id="enable-some-bridges-legacy-shortcut" href="#enable-some-bridges-legacy-shortcut" class="Permalink" aria-hidden="true" title="Permalink">#</a>Enable some bridges (legacy shortcut)</h2>
|
||||
<pre><code>echo -e "TwitchBridge\nTwitterBridge" > whitelist.txt
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user