Avatar
Rif'at Ahdi R
2b67e480b7f99d2835684a8f7276d86edbe8e318ea55cf77ccfd559c5f24f645
Special family-friendly relay with filter settings (Language, Safe For Work, Hate speech, Sentiment, Topic, etc) for Global Feed: https://github.com/atrifat/nostr-filter-relay/blob/main/USAGE.md wss://nfrelay.app Indonesian. Learning and interested in PHP, JS, Go, DevOps, Android, and Machine Learning

You can probably try using nfrelay.app . It has already spam filter implemented to handle RplyFamily and Impersonator. Let me know if you have still those spam while using the relay 👋

Additionally you can also add WoT relays to help such as:

- wot.utxo.one

- nostrelites.org

- wot.nostr.party

- wot.siamstr.com

- nostr-relay.app

Just suggestion, maybe you can add policy rule like this

https://github.com/atrifat/strfry-policies/pull/1

Policy that request external API that you can freely implement later to process the event. I have done this nfrelay.app to filter RplyFamily and impersonator by reading metadata profile.

Simple Policy API server example can be made like this:

```

const express = require('express');

const bodyParser = require('body-parser');

const app = express();

const PORT = 3000;

// Middleware to parse JSON bodies

app.use(bodyParser.json());

// POST route for /spamfilter

app.post('/spamfilter', (req, res) => {

const { input } = req.body; // Destructure input from the request body

const content = input.content; // Assuming content is a property of input

// Simple spam detection logic (for demonstration purposes)

const spamKeywords = ['spam', 'buy now', 'click here'];

const isSpam = spamKeywords.some(keyword => content.includes(keyword));

// Respond with { accept: true } or { accept: false }

if (isSpam) {

return res.status(200).json({ accept: false });

}

res.status(200).json({ accept: true });

});

// Start the server

app.listen(PORT, () => {

console.log(`Server is running on http://localhost:${PORT}`);

});

```

This Reply spam seems little bit different than regular RplyFamily. It was targeted to more certain users (popular users).

I think we need more "Smart clients and Smart relays" here to solve the issue. Clients can show it clearly when the person have invalid NIP-05 (impersonators) while relays might probably filter them out.

PSA:

nfrelay.app backend relay will be migrated from strfry 0.9.6 into latest version. There will be some downtime or incomplete data during migration. Maintenance will be started from September 16 01:00 UTC. Thank you.

#NostrFilterRelay

If i'm not mistaken, this is bullish pattern known for traders while waiting bounce on support line 😄 /s

Welcome. Yes, it is read-only aggregator relay for now. I will prepare it later so it can also accept write directly and handle spam better. Let me know if you have problems or other questions 🙂

1. It will be used by Amethyst to fetch event but will not be used to publish event into it. "Read" relay or Public inbox relay in amethyst relay settings. You can set it in "Public inbox relay" or you can set nfrelay.app in "General relay" setting like this:

It should have same effect.

2. nfrelay.app will fetch other posts/notes from other relay automatically in my server. It is ok if you dont set nfrelay.app as "write" relay. nfrelay.app is a read-only relay actually.

Yes, you can set it as "Read" relay Kohei-san. To set "Write" relay, you can use any other major relays and notes/posts will be aggregated into nfrelay.app .

Do you aggregate events from nos.lol to relay.nostr.wirednet.jp, Kirino-san?

If you need relay to aggregate global feed then you can try nfrelay.app . It aggregates events from major relays. Also, I have already filtered spam of RplyFamily.

Amethyst latest version also do good job with Filtering profile metadata based on "hidden word" that were set. Other clients like Nostur implement WoT.

Thank you. It is aggregator relay that has various filter features. 🙂

You can probably check more in Usage docs in if you want to try other features https://github.com/atrifat/nostr-filter-relay

Kohei-san, if you want to check global feed then you can probably try using nfrelay.app . I have already filtered spam like RplyGuy and his family 😄

You are right, it is weird. Just checked the last event was 7 hours ago 😅

nak req -l 1 relay.damus.io

Only got this one

{"kind":31234,"id":"19ed50446830fefa0757b43eb43ca46839e9e4cea0707f8324216d7f405eeee7","pubkey":"6c0e9016b9c1efe7edef87e505e2a1e03db1fbbcfdc3ed6b4f8aaa4b540ad98f","created_at":1726275953, ... }

/cc nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s