One thing Reddit dominates on is search results. I’m looking things up and seeing so many links to reddit, which I guess is going to help keep that place relevant (unless those subreddits stay dark).

I wondered how Lemmy and this fed thingy stuff all works for that? With more posts can we expect to see people arriving through search results?

  • kadu@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    1 year ago

    One thing to keep in mind is that Google currently penalizes links that don’t end in the common top domains like “.com”, “.org” and similar. So something like lemmy.world, if indexed, will rank lower than a site ending in .com with the same keyword density.

    • Briongloid@aussie.zone
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      1
      ·
      1 year ago

      Google went from being the most important website on the internet to being more and more useless, it’s amazing seeing such a massive company go downhill. But they have so much money that they’ll be able to stay big forever from capital alone.

      • gun@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        What do you use as a search engine instead of Google? I feel like I’ve tried everything, but always end up back at Google search.

        • crt0o@lemm.ee
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 year ago

          I’ve been using DuckDuckGo for about a year now, the results still aren’t as good as google, but not having to look at ads and the better privacy outweigh that for me. It really has improved a lot over the last few years.

        • Ministar@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Been using Ecosia and so far its been very good. I did not have a need to use Google once.

    • SkyNTP@lemmy.ml
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      edit-2
      1 year ago

      Let Google be irrelevant. It kind of already is there in the absence of Reddit.

      The nerds always blaze a trail when boring old entrenched media ruins good things. In this case the thing being ruined is a search engine that makes the critical mistake of assuming a traditionally “prestigious” .com equates value. Fuck the old establishment, it’s time to ditch decrepit big tech and remake the internet the way it was meant to be. It’s time to reinvent how we share and discover content.

      • CalcProgrammer1@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Embracing the Fediverse now does pretty much feel like “taking back the Internet”. It reminds me of the early days and that’s an amazing thing. Tired of the over commercialized hellscape the Internet has become over the past decade and a half.

    • Joe B@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      1 year ago

      Fine with me. We will have a lot of users and become bigger then reddit and Google will still treat us like second class citizens. oh well for Google they are missing out

  • wpuckering@lm.williampuckering.com
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    1 year ago

    There’s a lot of things that factor into the answer, but I think overall it’s gonna be pretty random. Some instances are on domains without “Lemmy” in the name, some don’t include “Lemmy” in the site name configuration, and in the case of some like my own instance, I set the X-Robots-Tag response header such that search engines that properly honor the header won’t crawl or index content on my instance. I’ve actually taken things a step further with mine and put all public paths except for the API endpoints behind authentication (so that Lemmy clients and federation still work with it), so you can’t browse my instance content without going through a proper client for extra privacy. But that goes off-topic.

    Reddit was centralized so could be optimized for SEO. Lemmy instances are individually run with different configuration at the infrastructure level and the application configuration level, which if most people leave things fairly vanilla, should result in pretty good discovery of Lemmy content across most of these kinds of instances, but I would think most people technical enough to host their own instances would have deviated from defaults and (hopefully) implemented some hardening, which would likely mess with SEO.

    So yeah, expect it to be pretty random, but not necessarily unworkable.

    • OrangeSlice@lemmy.mlM
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      1 year ago

      Easily the best answer here, I think the people who think it will work “just like Reddit” are unfamiliar with federation still, and aren’t used to thinking things through in those terms.

      Not to mention that Google results in general have been pretty trash for a couple years now. I don’t expect fediverse content to be prominent for some time unless there is a dedicated service that indexes everything.

      • itty53@vlemmy.net
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 year ago

        I mean why couldn’t there be a dedicated service that indexes everything? Whoever makes it and gets it working in a user friendly manner is going to have a significant level of control on the content that is shown in the results. If you don’t want it, it isn’t indexed. I don’t have to stretch the imagination to think of parties that have good reason to want to be first to do that across Activity Pub as a whole. Mastodon is already a big frontrunner in that regard.

      • jmp242@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I kind of feel like Kagi will be all over this with it’s forum ‘lens’ for search, but it’s paid. Maybe boardreader would focus on this too?

        Google search isn’t as good as it used to be and using startpage.com to break the filter bubble isn’t effective as much anymore either. So we probably all also need to start remembering like 1999 and different search engine for different things and looking for what works the best.

    • fizzym4d@lemmy.fmhy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Your “off-topic” sounded pretty cool to me! I love that that is something anyone can do when hosting a lemmy instance. You get to choose if it’s searchable on the web! Obviously there are search engines which ignore the no scraping/indexing header, but the rest of what you did should counteract that, noice.

      • wpuckering@lm.williampuckering.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Yeah, if you’re running something yourself, you can do pretty much whatever you want in order to protect it. Especially if it’s behind a reverse proxy. Firewalls are great for protecting ports, but reverse proxies can be their own form of protection, and I don’t think a lot of people associate them with “protection” so much. Why expose paths (unauthenticated) that don’t need to be? For instance, in my case with my Lemmy instance, all any other instance needs is access to the /api path which I leave open. And all the other paths are behind basic authentication which I can access, so I can still use the Lemmy web interface on my own instance if I want to. But if I don’t want others browsing to my instance to see what communities have been added, or I don’t want to give someone an easy glance into what comments or posts my profile has made across all instances (for a little more privacy), then I can simply hide that behind the curtain without losing any functionality.

        It’s easy to think of these things when you have relevant experience with web development, debugging web applications, full stack development, and subject matter knowledge in related areas, if you have a tendency to approach things with a security-oriented mindset. I’m not trying to sound arrogant, but honestly my professional experience has a lot to do with how my personal habits have formed around my hobbies. So I have a tendency to take things as far as I can with everything that I know, and stuff like this is the result lol. Might be totally unnecessary without much actual value, but it errs on the side of “a little more secure”, and why not, if it’s fun?

        • Arinshot@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I’d be interested in how you did this, this seems like one of the best ways I’ve seen for securing a lemmy instance.

          • maynarkh
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            One easy way to do that is to set up something like Nginx as a reverse proxy in front and forward /api clean, but forward everything else with basic auth.

            The steps broadly would be:

            And you’re done.

          • wpuckering@lm.williampuckering.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            I have a single Nginx container that handles reverse proxying of all my selfhosted services, and I break every service out into its own configuration file, and use include directives to share common configuration across them. For anyone out there with Nginx experience, my Lemmy configuration file should make it fairly clear in terms of how I handle what I described above:

            server {
              include ssl_common.conf;
              server_name lm.williampuckering.com;
              set $backend_client lemmy-ui:1234;
              set $backend_server lemmy-server:8536;
              
              location / {
                set $authentication "Authentication Required";
                include /etc/nginx/proxy_nocache_backend.conf;
                
                if ($http_accept = "application/activity+json") {
                  set $authentication off;
                  set $backend_client $backend_server;
                }
                if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
                  set $authentication off;
                  set $backend_client $backend_server;
                }
                if ($request_method = POST) {
                  set $authentication off;
                  set $backend_client $backend_server;
                }
                
                auth_basic $authentication;
                auth_basic_user_file htpasswd;
                proxy_pass http://$backend_client;
              }
              
              location ~* ^/(api|feeds|nodeinfo|.well-known) {
                include /etc/nginx/proxy_nocache_backend.conf;
                proxy_pass http://$backend_server;
              }
              
              location ~* ^/pictrs {
                proxy_cache lemmy_cache;
                include /etc/nginx/proxy_cache_backend.conf;
                proxy_pass http://$backend_server;
              }
              
              location ~* ^/static {
                proxy_cache lemmy_cache;
                include /etc/nginx/proxy_cache_backend.conf;
                proxy_pass http://$backend_client;
              }
              
              location ~* ^/css {
                proxy_cache lemmy_cache;
                include /etc/nginx/proxy_cache_backend.conf;
                proxy_pass http://$backend_client;
              }
            }
            

            It’s definitely in need of some clean-up (for instance, there’s no need for multiple location blocks that do the same thing for caching, a single expression can handle all of the ones with identical configuration to reduce the number of lines required), but I’ve been a bit lazy to clean things up. However it should serve as a good example and communicate the general idea of what I’m doing.

      • wpuckering@lm.williampuckering.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        1 year ago

        As a general rule, I prevent all of my self-hosted services that are directly exposed to the Internet from being crawled or indexed by search engines. Any service I do expose publicly to the Internet is of course behind proper authentication and is secured using modern best practices and standards, but lowering the visibility and odds of someone stumbling onto services they have no use for, and potentially trying to exploit them, is less likely to happen if they aren’t presented front and center in a search result. I wouldn’t say it’s a proper security measure by any means (obscurity has nothing to do with real security), but blending into the crowd or taking a seat at the back of the room draws less attention to yourself if you don’t care to be the first target in someone’s sights.

        So why do I expose any of my self-hosted services to the Internet in the first place, rather than access them exclusively via VPN? For me there’s a few reasons:

        • Ease of Access - I want the ability to instantly share usage of specific services that I host with friends and family over the Internet, and I can’t expect them to do so over VPN, even if I were to offer to help them get set up
        • Performance - I use Cloudflare Tunnels to expose my services (no open router ports, ever), so that allows me to use Cloudflare’s CDN for caching static assets such as immutable images, CSS, Javascript, and I’ve extensively tweaked my Cache Rules to squeeze the most of out it
        • Security - Cloudflare secures my services with their built-in tooling, and I can use Cloudflare Access if I want to limit access further to specific users by means of accounts they already have, such as Google or various social media account providers

        …And there are more reasons I could get into, and I could easily expand on the ones above, but I’ll leave it there.

        Of course having all of my external traffic flow through Cloudflare means there’s no expectation of data privacy for any payload traversing in and out of my services, but I’ve decided that I’m okay with that for the other benefits I get out of Cloudflare. Nothing’s truly free, right?

        But to answer your original question more specifically, and with the context above in mind, why actively work against indexing in the case of my Lemmy instance? Well, I’m the only user on my instance. I only use it as a home server for my account. That means I’m not creating any communities on it, and there’s no content actually originating from my instance proper. Anybody who would end up coming across my instance, if they were to browse, would see content which originates from other instances, and only content from the time that I set up my server and began federating with those other servers and onward. They wouldn’t see every comment from posts that pre-dated my federation, so it would be an incomplete view. They would be better off going directly to the server that originated the content. They could of course do that by following the permalink from my own server, but it’s an extra hop. It might arguably be better in this case if I just remove my server entirely from any possible search results so that if the originating instance is indexable, its content shows up in the results and mine don’t. That would probably be a better user experience for users trying to find Lemmy content via search engines, they’d hopefully land in the originating instance sooner than later.

        Long answer, but I wanted to give as much insight and clarity into why I do what I do. Happy to answer any more questions!

        • Kresten@feddit.dk
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Interesting insight into your setup and thought process.

          That makes good sense. I didn’t realize you hosted your instance only for yourself. I might consider that as well in the future.

          • wpuckering@lm.williampuckering.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            1 year ago

            It’s a good idea to host your own instance (if you can) for a number of reasons, depending on your own skillset and level of knowledge:

            • If you know how to best optimize web applications and backend databases, you can make your own instance more performant than others who may not have that knowledge. Case in point, I’ve seen various complaints on Lemmy about performance degradation due to an influx of users from Reddit in the past week or so, but I’ve been completely unaffected.
            • Even if other instances are down, but yours is up, and you are pulling content/federating to the others, you’ll have the latest content from those instances cached on your own, so you’ll still be able to browse whatever you’re subscribed to on those offline instances for the time being (for those who use those instances directly, they’re out of luck).
            • You own your own content. Updating content on your own instance results in a push to the other instances to bring them in sync. So let’s say you want to delete all of your post history or modify all of your past content to garbage. You can almost completely guarantee that no one can stop you from doing that, since doing so on your own instance will propagate those changes to all of the others it’s aware of where you’ve posted, as long as those instances are still online and reachable. And no one can pull the rug out from under you and make your account, complete with post and comment history from some point in time, inaccessible to yourself (removing this ability to secure your privacy and ownership of your own data).
            • Load balancing (kind of but not really). Hosting your own instance takes some load off of other instances. Those instances are still bearing load when you push content to them, but it’s a smaller set of operations than doing everything directly on those instances as opposed to performing a sync. This results in overall better health for the Fediverse as a whole.
            • More open access to the Fediverse in general. You’re not likely to have your own small instance blocked on any other instances, you “fly under the radar” so to speak. I’m unaffected by the Beehaw federation decisions as of late, for example, since my instance isn’t blocked anywhere and likely never would be. I’m too small of a fish in too big of a sea to bother with.

            There’s even more reasons I’m sure, but those are the obvious ones that come to my mind.

    • ccx@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Making it a Searx plugin would probably do better in terms of making it accessible to a lot of people.

      I wonder how good are various ActivityPub instances at searching. Having pregenerated fulltext indexes of public content available for download could go a long way to make building search engine easy and fast.

    • Ben@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      Actually the point is that, if someone searched internet for ‘fediverse sources’ they wouldn’t find a relevant thread on lemmy.world, or lemmy.ml, or whatever.

  • Ben@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    I actually added a custom search engine to Firefox… so I can search something on Lemmy. I have the keyword ‘LW’ for Lemmy.World search right now (because Lemmy.ml was offline a while).

    Basically, do the Lemmy search (search term ssss) then edit/replace ssss > %s and copy the entire link. https://lemmy.world/search/q/%s/type/All/sort/TopAll/listing_type/All/community_id/0/creator_id/0/page/1

    Then using ‘add custom search engine’ extension on Firefox, you add it.

  • dan@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    My guess is just that Reddit happily lets search engines crawl it, so that content is well-indexed, and because Reddit threads are often linked to from elsewhere the site is considered good quality.

    I’d imagine Lemmy would eventually get to the same point naturally if enough information is shared here. At least, assuming it doesn’t block search engines.

    Hmm although I don’t really understand how federation will fit with that, given it basically means the same content is duplicated on a bunch of domains.

    • maynarkh
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I think if the Fediverse will grow to a critical mass, properly crawling it will be the problem of Google et. al.

  • Kalkaline @lemmy.one
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I guess you’d have to try it out, right? Maybe look up some topics and point Google to Lemmy. Honestly haven’t looked much into the whole community beyond setting up a Mastodon account a while back and looking into it a bit more this week.

  • JohannesOliver@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    One would hope! I can find results from lemmy instances on Google - they are definitely crawling them, but their page rank is going to start out very low.

  • Monkey With A Shell@lemmy.socdojo.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    A lot of search engines rely on backlinks to rank the reliablitly/validity of a site so even if a given instance was picked up to have enough places reference it to be seen as a valid source would ve a pretty heavy lift.

  • Djokkum@rammy.site
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    1 year ago

    I would expect Lemmy to show up equally in the search results if there is enough relevant content. My tiny tiny instance is already showing up in search results, crawlers can definitely find stuff on here. It would be great if at some point we can append “lemmy” to search queries to get the good stuff like we could with Reddit.