Ask me anything.

I also develop Tesseract UI

  • 4 Posts
  • 17 Comments
Joined 2 years ago
cake
Cake day: March 17th, 2024

help-circle

  • Can’t edit the post (Thanks Cloudflare! /s) but additional info:

    • I truncated the log excerpts in the post. The user agent string in these requests isn’t shown here, but it is blank in the actual logs.
    • This is for Lemmy admins only. It might apply to others in some form, but this seems to be specifically exploiting a Lemmy API endpoint
    • My Nginx solution may have room for improvement; I was just trying to block that behavior without breaking comments in posts and move on with my day. Suggestions for improvement are welcome.


  • but I send you a PM

    Oh, sorry. One of the new features in this dev branch is the ability to disable PMs and mentions. I’ve been running with those turned off. Seems like that feature is working lol.

    I turned DMs back on and found the message - will try to join here when I’m back on desktop. Dunno how active I can be right now, but I am eventually going to start on Piefed so would be nice to have a sounding board.

    Some of the devs are already working on shared logic/libraries between apps.

    Nice!



  • I believe you can, yeah, and I also think that “bootstraps” that instance to yours if it doesn’t already know about it. But in that case, the way I have the search written, it’ll “fall back” to regular search which also does resolveObject. That just takes longer.

    The ap_id check is just to short-circuit that behavior to avoid the lengthy, often unnecessary, search and quickly redirect you to your instance’s local copy.

    Have had that working for about a week now, and it’s pretty nice. Please do steal this feature lol.






  • https://nginx.org/en/docs/http/ngx_http_proxy_module.html

    $proxy_add_x_forwarded_for is a built-in variable that either adds to the existing X-Forwarded-For header, if present, or adds the XFF header with the value of the built-in $remote_ip variable.

    The former case would be when Nginx is behind another reverse proxy, and the latter case when Nginx is exposed directly to the client.

    Assuming this Nginx is exposed directly to the clients, maybe try changing the bottom section like this to use the $remote_addr value for the XFF header. The commented one is just to make rolling back easier. Nginx will need to be reloaded after making the change, naturally.

         # Add IP forwarding headers
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header Host $host;
          # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header X-Forwarded-For $remote_addr;
    




  • So, a ‘Comments’ Rate limit: 10, Per second: 60, means a maximum of 10 comments per minute, correct?

    Correct, per client IP.

    Maybe the reason you see 99999999 is due to troubleshooting

    Could be. I try not to speculate on “why” when I don’t have access to the answer lol.

    I don’t recall any of them being from mander (unless they were dealt with before I started testing?), but thanks for taking preventative measures :)

    I don’t know what ‘Antiyanks’ is

    It’s the codename for a particular long-term troll and is based off of their original username pattern (which they still use sometimes). I have reason to believe it’s also the same troll that used to spam the racist stuff in Science Memes.

    These are most of today’s batch (minus the JON333 which was just a garden-variety spammer that made it into the last screenshot).