• 29 Posts
  • 378 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2024

help-circle






  • I would like to tell my story which led to me encrypting my PC hard drive, even if it’ not a laptop.

    I had a iMac, first it was from work but when I left the company I bought it ao I could keep it. When asked if I want to encrypt the drive while setting it up I denied because it’s not a laptop so I didn’t take it with me so it couldn’t get stolen.

    Until I woke up one day and this big iMac which was the center of my desk was suddenly gone, together with my Nikon camera, my external sound card and other electronics the thieves could grab quickly while I was snoring in the bedroom.

    I didn’t mind the hardware so much and I had backups of most of the things already anyway, but the feeling that they could mount the HDD and get all the data especially I was logged in to all websites and change my passwords, etc.

    Since then I’m encrypting everything.







  • I mean I did throw up a PT instance and publish my videos exclusively on it, and I’m getting decent views if the topic is interesting and I promote it on hacker news, I’m getting several thousands of views. But that does not fix the PeerTube mobile app, nor the fact that finding content is practically impossible and the subscribe mechanism constantly randomly stops working, there is no app for my TV (like SmartTube) etc.

    I’m all in with PeerTube as a creator, but as a user it’s a terrible experience.





  • For now I asked chatgtp to help me to implement a simple return 403 on bot user agent. I looked into my logs and collected the bot names which I saw. I know it won’t hold forever but for now it’s quite nice, I just added this file to /etc/nginx/conf.d/block_bots.conf and it gets run before all the vhosts and rejects all bots. The rest just goes normally to the vhosts. This way I don’t need to implement it in each vhost seperatelly.

    ➜ jeena@Abraham conf.d cat block_bots.conf 
    # /etc/nginx/conf.d/block_bots.conf  
    
    # 1️⃣ Map user agents to $bad_bot  
    map $http_user_agent $bad_bot {  
        default 0;  
    
        ~*SemrushBot                            1;  
        ~*AhrefsBot                             1;  
        ~*PetalBot                              1;  
        ~*YisouSpider                           1;  
        ~*Amazonbot                             1;  
        ~*VelenPublicWebCrawler                 1;  
        ~*DataForSeoBot                          1;  
        ~*Expanse,\ a\ Palo\ Alto\ Networks\ company 1;  
        ~*BacklinksExtendedBot                   1;  
        ~*ClaudeBot                              1;  
        ~*OAI-SearchBot                          1;  
        ~*GPTBot                                 1;  
        ~*meta-externalagent                     1;  
    }  
    
    # 2️⃣ Global default server to block bad bots  
    server {  
        listen 80 default_server;  
        listen [::]:80 default_server;  
        listen 443 ssl default_server;  
        listen [::]:443 ssl default_server;  
    
        # dummy SSL cert for HTTPS  
        ssl_certificate     /etc/ssl/certs/ssl-cert-snakeoil.pem;  
        ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;  
    
        # block bad bots  
        if ($bad_bot) {  
            return 403;  
        }  
    
        # close connection for anything else hitting default server  
        return 444;  
    }