Stránka 3 z 3

Re: Poruseni StTO

Napsal: 13 črc 2014, 00:13
od Lukas.Novy

Kód: Vybrat vše

server {
        listen 80;
        server_name    zmrd.krtek.net;

        access_log /var/log/nginx/forum.log;
        root /nonexistent;

        location /ucp.php {
                rewrite ^ /? redirect;
                break;
        }

        location /report.php {
                rewrite ^ /? redirect;
                break;
        }

        location /posting.php {
                rewrite ^ /? redirect;
                break;
        }

        location / {
                proxy_set_header Host forum.pirati.cz;
                proxy_set_header        User-Agent      "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120601 Firefox/10.0.5";
                proxy_pass                 https://forum.pirati.cz;
                proxy_cookie_domain     forum.pirati.cz zmrd.krtek.net;
                proxy_set_header           Cookie       "Aiph9Wo2gaecae8_k=NAHRAD_Z_COOKIE; Aiph9Wo2gaecae8_sid=NAHRAD_ZA_SID; Aiph9Wo2gaecae8_u=NAHRAD_Z_COOKIE";
                proxy_hide_header          Set-Cookie;
                proxy_hide_header          Pragma;
                proxy_hide_header          Cache-Control;
                proxy_hide_header          X-Robots-Tag;
                proxy_hide_header          X-FRAME-OPTIONS;
                proxy_http_version 1.1;
                proxy_set_header        Connection      "";
                proxy_ssl_session_reuse on;
                proxy_set_header        Accept-Encoding  "";

                proxy_set_header        Accept-Language "";
                proxy_set_header        Accept                  "*/*";

                proxy_redirect             default;

                subs_filter https://forum.pirati.cz     http://zmrd.krtek.net;
                subs_filter forum.pirati.cz     zmrd.krtek.net;
                subs_filter sid=NAHRAD_ZA_SID '';
                subs_filter NAHRAD_ZA_SID REDACTED i;
                subs_filter 'hash=[0-9a-f]{8}' '' r;
                subs_filter 'thanks=\d+' '' r;
                subs_filter '<head>' '<head><link href="http://fonts.googleapis.com/css?family=Lora:400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css" /><style type="text/css">* { font-family: "Lora", serif !important; }
</style>' o;

                subs_filter_types       text/css application/xhtml+xml text/xml;

        }
}

Re: Poruseni StTO

Napsal: 13 črc 2014, 03:27
od Lukas.Findeis
Tomas Lastuvka píše:Lukase prosim, aby na mirroru udelal dve veci.. Zakazal indexovani Podpalubi a nahoru na web, dal nejaky banner, na kterem bude napsano, ze se jedna o mirror fora piratu. Tim by problem byl vyresen. [a smazat to rojovo jmeno...]
Ještě bych zvážil přejmenování webu. Zmrd není moc reprezentativní. Jinak je mirror super a já ho používám na čtení odkazovaných vláken v částech fóra, která mám skrytá. Stačí přepsat začátek URL.