Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Dorky moo girl (maxine@social.mootech.eu)'s status on Tuesday, 09-Jul-2019 17:59:08 UTC Dorky moo girl Dorky moo girl

    Gab actually uses a custom user agent to grab stuff.

    Mastodon does the same, but this makes it easy to make sure gab instances can't pull from you!

    add
    if ($http_user_agent ~* (gabsocial)) {
    return 403;
    }

    To your nginx configuration. That blocks all requests with a user agent that includes "gabsocial" (case insensitive)

    You can also add other user agents, at your leisure

    It just returns a 403 if they try to pull

    In conversation Tuesday, 09-Jul-2019 17:59:08 UTC from social.mootech.eu permalink
    • Laurelai Bailey repeated this.
    • jəˈrunˈprɑːt (jeroenpraat@todon.nl@todon.nl)'s status on Thursday, 11-Jul-2019 21:11:32 UTC jəˈrunˈprɑːt jəˈrunˈprɑːt
      in reply to

      @maxine To combine this with 'Nginx Bad Bot and User-Agent Blocker, …' (https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker), just put this at the end of /etc/nginx/bots.d/blacklist-user-agents.conf:

      "~*\bgabsocial\b" 3;

      In conversation Thursday, 11-Jul-2019 21:11:32 UTC permalink

      Attachments


      soloojos (Mastodon) repeated this.
    • Laurelai Bailey (laurelai@mastodon.starrevolution.org)'s status on Tuesday, 23-Jul-2019 16:58:04 UTC Laurelai Bailey Laurelai Bailey
      in reply to

      @maxine This doesnt work. Nginx wont start when i put that in the config

      In conversation Tuesday, 23-Jul-2019 16:58:04 UTC permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.