|
@@ -1,61 +1,62 @@
|
|
|
<?php
|
|
|
-
|
|
|
- $config_user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36";
|
|
|
+ return (object) array(
|
|
|
|
|
|
-
|
|
|
- $config_google_domain = "com";
|
|
|
-
|
|
|
-
|
|
|
- $config_google_language = "en";
|
|
|
-
|
|
|
- $config_disable_bittorent_search = false;
|
|
|
- $config_bittorent_trackers = "&tr=http%3A%2F%2Fnyaa.tracker.wf%3A7777%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce";
|
|
|
-
|
|
|
-
|
|
|
- These are privacy friendly front-ends for popular sites, these settings can be managed by end users as well for their session via cookies.
|
|
|
-
|
|
|
- Online invidious instances: https:
|
|
|
- Online bibliogram instances: https:
|
|
|
- Online nitter instances: https:
|
|
|
- Online libreddit instances: https:
|
|
|
+
|
|
|
+ "google_domain" => "com",
|
|
|
+
|
|
|
+
|
|
|
+ "google_language" => "en",
|
|
|
+
|
|
|
+ "disable_bittorent_search" => false,
|
|
|
+ "bittorent_trackers" => "&tr=http%3A%2F%2Fnyaa.tracker.wf%3A7777%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce",
|
|
|
+
|
|
|
+
|
|
|
+ These are privacy friendly front-ends for popular sites, these settings can be managed by end users as well for their session via cookies.
|
|
|
+
|
|
|
+ Online invidious instances: https:
|
|
|
+ Online bibliogram instances: https:
|
|
|
+ Online nitter instances: https:
|
|
|
+ Online libreddit instances: https:
|
|
|
+
|
|
|
+ If you don't want to replace YouTube for an example:
|
|
|
+ $replace_youtube_with_invidious = isset($_COOKIE["invidious"]) ? $_COOKIE["invidious"] : null;
|
|
|
+ */
|
|
|
+ "replace_youtube_with_invidious" => isset($_COOKIE["invidious"]) ? $_COOKIE["invidious"] : "https://yewtu.be",
|
|
|
+ "replace_instagram_with_bibliogram" => isset($_COOKIE["bibliogram"]) ? $_COOKIE["bibliogram"] : "https://bibliogram.pussthecat.org",
|
|
|
+ "replace_twitter_with_nitter" => isset($_COOKIE["nitter"]) ? $_COOKIE["nitter"] : "https://nitter.namazso.eu",
|
|
|
+ "replace_reddit_with_libreddit" => isset($_COOKIE["libreddit"]) ? $_COOKIE["libreddit"] : "https://libreddit.dothq.co",
|
|
|
+
|
|
|
+
|
|
|
+ To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
|
|
|
+
|
|
|
+ CURLOPT_PROXYTYPE options:
|
|
|
+
|
|
|
+ CURLPROXY_HTTP
|
|
|
+ CURLPROXY_SOCKS4
|
|
|
+ CURLPROXY_SOCKS4A
|
|
|
+ CURLPROXY_SOCKS5
|
|
|
+ CURLPROXY_SOCKS5_HOSTNAME
|
|
|
+
|
|
|
+ As an example, for a TOR connection you would use these settings:
|
|
|
+ CURLOPT_PROXY => "127.0.0.1:9050",
|
|
|
+ CURLOPT_PROXYTYPE => CURLPROXY_SOCKS5,
|
|
|
+
|
|
|
+ !!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!!
|
|
|
+ */
|
|
|
+ "curl_settings" => array(
|
|
|
+
|
|
|
+
|
|
|
+ CURLOPT_RETURNTRANSFER => true,
|
|
|
+ CURLOPT_ENCODING => "",
|
|
|
+ CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36",
|
|
|
+ CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
|
|
|
+ CURLOPT_CUSTOMREQUEST => "GET",
|
|
|
+ CURLOPT_SSL_VERIFYHOST => false,
|
|
|
+ CURLOPT_SSL_VERIFYPEER => false,
|
|
|
+ CURLOPT_SSL_VERIFYSTATUS => false,
|
|
|
+ CURLOPT_VERBOSE => false,
|
|
|
+ CURLOPT_TCP_FASTOPEN => true
|
|
|
+ )
|
|
|
|
|
|
- If you don't want to replace YouTube for an example:
|
|
|
- $config_replace_youtube_with_invidious = isset($_COOKIE["invidious"]) ? $_COOKIE["invidious"] : null;
|
|
|
- */
|
|
|
- $config_replace_youtube_with_invidious = isset($_COOKIE["invidious"]) ? $_COOKIE["invidious"] : "https://yewtu.be";
|
|
|
- $config_replace_instagram_with_bibliogram = isset($_COOKIE["bibliogram"]) ? $_COOKIE["bibliogram"] : "https://bibliogram.pussthecat.org";
|
|
|
- $config_replace_twitter_with_nitter = isset($_COOKIE["nitter"]) ? $_COOKIE["nitter"] : "https://nitter.namazso.eu";
|
|
|
- $config_replace_reddit_with_libreddit = isset($_COOKIE["libreddit"]) ? $_COOKIE["libreddit"] : "https://libreddit.dothq.co";
|
|
|
-
|
|
|
-
|
|
|
- To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
|
|
|
-
|
|
|
- CURLOPT_PROXYTYPE options:
|
|
|
-
|
|
|
- CURLPROXY_HTTP
|
|
|
- CURLPROXY_SOCKS4
|
|
|
- CURLPROXY_SOCKS4A
|
|
|
- CURLPROXY_SOCKS5
|
|
|
- CURLPROXY_SOCKS5_HOSTNAME
|
|
|
-
|
|
|
- As an example, for a TOR connection you would use these settings:
|
|
|
- CURLOPT_PROXY => "127.0.0.1:9050",
|
|
|
- CURLOPT_PROXYTYPE => CURLPROXY_SOCKS5,
|
|
|
-
|
|
|
- !!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!!
|
|
|
- */
|
|
|
- $config_curl_settings = array(
|
|
|
-
|
|
|
-
|
|
|
- CURLOPT_RETURNTRANSFER => true,
|
|
|
- CURLOPT_ENCODING => "",
|
|
|
- CURLOPT_USERAGENT => $config_user_agent,
|
|
|
- CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
|
|
|
- CURLOPT_CUSTOMREQUEST => "GET",
|
|
|
- CURLOPT_SSL_VERIFYHOST => false,
|
|
|
- CURLOPT_SSL_VERIFYPEER => false,
|
|
|
- CURLOPT_SSL_VERIFYSTATUS => false,
|
|
|
- CURLOPT_VERBOSE => false,
|
|
|
- CURLOPT_TCP_FASTOPEN => true
|
|
|
);
|
|
|
?>
|