• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Problem with remote playback

     
    • 0 Vote(s) - 0 Average

    Problem with remote playback

    Remote Playback not possible with some devices.
    ice-p
    Offline

    Junior Member

    Posts: 14
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    #13
    2025-01-13, 08:46 PM
    i was not able to paste it in pastebin because of the content. Here are both files, the server.conf file did not exist in my environment.

    Code:
    cat block-exploits.conf
    ## Block SQL injections
    set $block_sql_injections 0;

    if ($query_string ~ "union.*select.*\(") {
    set $block_sql_injections 1;
    }

    if ($query_string ~ "union.*all.*select.*") {
    set $block_sql_injections 1;
    }

    if ($query_string ~ "concat.*\(") {
    set $block_sql_injections 1;
    }

    if ($block_sql_injections = 1) {
    return 403;
    }

    ## Block file injections
    set $block_file_injections 0;

    if ($query_string ~ "[a-zA-Z0-9_]=http://") {
    set $block_file_injections 1;
    }

    if ($query_string ~ "[a-zA-Z0-9_]=(\.\.//?)+") {
    set $block_file_injections 1;
    }

    if ($query_string ~ "[a-zA-Z0-9_]=/([a-z0-9_.]//?)+") {
    set $block_file_injections 1;
    }

    if ($block_file_injections = 1) {
    return 403;
    }

    ## Block common exploits
    set $block_common_exploits 0;

    if ($query_string ~ "(<|%3C).*script.*(>|%3E)") {
    set $block_common_exploits 1;
    }

    if ($query_string ~ "GLOBALS(=|\[|\%[0-9A-Z]{0,2})") {
    set $block_common_exploits 1;
    }

    if ($query_string ~ "_REQUEST(=|\[|\%[0-9A-Z]{0,2})") {
    set $block_common_exploits 1;
    }

    if ($query_string ~ "proc/self/environ") {
    set $block_common_exploits 1;
    }

    if ($query_string ~ "mosConfig_[a-zA-Z_]{1,21}(=|\%3D)") {
    set $block_common_exploits 1;
    }

    if ($query_string ~ "base64_(en|de)code\(.*\)") {
    set $block_common_exploits 1;
    }

    if ($block_common_exploits = 1) {
    return 403;
    }

    ## Block spam
    set $block_spam 0;

    if ($query_string ~ "\b(ultram|unicauca|valium|viagra|vicodin|xanax|ypxaieo)\b") {
    set $block_spam 1;
    }

    if ($query_string ~ "\b(erections|hoodia|huronriveracres|impotence|levitra|libido)\b") {
    set $block_spam 1;
    }

    if ($query_string ~ "\b(ambien|blue\spill|cialis|cocaine|ejaculation|erectile)\b") {
    set $block_spam 1;
    }

    if ($query_string ~ "\b(lipitor|phentermin|pro[sz]ac|sandyauer|tramadol|troyhamby)\b") {
    set $block_spam 1;
    }

    if ($block_spam = 1) {
    return 403;
    }

    ## Block user agents
    set $block_user_agents 0;

    # Disable Akeeba Remote Control 2.5 and earlier
    if ($http_user_agent ~ "Indy Library") {
    set $block_user_agents 1;
    }

    # Common bandwidth hoggers and hacking tools.
    if ($http_user_agent ~ "libwww-perl") {
    set $block_user_agents 1;
    }

    if ($http_user_agent ~ "GetRight") {
    set $block_user_agents 1;
    }

    if ($http_user_agent ~ "GetWeb!") {
    set $block_user_agents 1;
    }

    if ($http_user_agent ~ "Go!Zilla") {
    set $block_user_agents 1;
    }

    if ($http_user_agent ~ "Download Demon") {
    set $block_user_agents 1;
    }

    if ($http_user_agent ~ "Go-Ahead-Got-It") {
    set $block_user_agents 1;
    }

    if ($http_user_agent ~ "TurnitinBot") {
    set $block_user_agents 1;
    }

    if ($http_user_agent ~ "GrabNet") {
    set $block_user_agents 1;
    }

    if ($block_user_agents = 1) {
    return 403;

    and here the other file

    Code:
    cat proxy.conf
    add_header      X-Served-By $host;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Scheme $scheme;
    proxy_set_header X-Forwarded-Proto  $scheme;
    proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
    proxy_set_header X-Real-IP          $remote_addr;
    proxy_pass      $forward_scheme://$server:$port$request_uri;
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Problem with remote playback - by ice-p - 2025-01-12, 07:59 PM
    RE: Problem with remote playback - by bitmap - 2025-01-12, 08:17 PM
    RE: Problem with remote playback - by ice-p - 2025-01-12, 09:23 PM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-12, 09:53 PM
    RE: Problem with remote playback - by ice-p - 2025-01-12, 10:02 PM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-12, 11:50 PM
    RE: Problem with remote playback - by ice-p - 2025-01-13, 11:38 AM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-13, 01:46 PM
    RE: Problem with remote playback - by ice-p - 2025-01-13, 03:35 PM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-13, 03:41 PM
    RE: Problem with remote playback - by ice-p - 2025-01-13, 07:22 PM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-13, 09:27 PM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-13, 07:44 PM
    RE: Problem with remote playback - by ice-p - 2025-01-13, 08:46 PM
    RE: Problem with remote playback - by ice-p - 2025-01-13, 10:01 PM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-13, 10:28 PM
    RE: Problem with remote playback - by ice-p - 2025-01-14, 07:44 AM
    RE: Problem with remote playback - by ice-p - 2025-01-14, 08:07 PM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-14, 08:32 PM
    RE: Problem with remote playback - by ice-p - 2025-01-14, 11:08 PM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-14, 11:12 PM
    RE: Problem with remote playback - by ice-p - 2025-01-25, 10:16 AM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-26, 05:53 PM
    RE: Problem with remote playback - by ice-p - 2025-01-26, 08:08 PM
    RE: Problem with remote playback - by ice-p - 2025-01-31, 09:24 PM
    RE: Problem with remote playback - by TheDreadPirate - 2025-01-31, 09:50 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode