Advice Request Need guidance and advice from those knowledgeable about ad blocking

Please provide comments and solutions that are helpful to the author of this topic.
Unfortunately, Notepad++ doesn't have a built-in function to split text into specific character lengths. However, you can use a Python script with the Python Script plugin for Notepad++. Here's a simple script:

```python
import os

def split_text_into_chunks(text, length):
return [text[i:i+length] for i in range(0, len(text), length)]

editor.beginUndoAction()

text = editor.getText()
chunks = split_text_into_chunks(text, 65530)

editor.clearAll()

for chunk in chunks:
editor.addText(chunk)
editor.newLine()

editor.endUndoAction()
```

This script will split the text in the current document into chunks of 65530 characters each. Each chunk will be on its own line. Please note that you need to install the Python Script plugin and have Python installed on your machine to run this script.
Is there a website that can split text into groups of chars?
 
Is there a website that can split text into groups of chars?
Yes, there are several online tools that can help you split text into groups of characters. One such tool is Text Mechanic's "Add/Remove Line Breaks" tool. Here's how to use it:

1. Go to the Text Mechanic website.
2. Click on "Add/Remove Line Breaks".
3. Paste your text into the input box.
4. In the "Line Break Options" section, select "Add a line break every... characters".
5. Enter the number of characters you want in each group (e.g., 65530).
6. Click the "Add/Remove Line Breaks" button.

Your text will be split into groups of the specified number of characters, with each group separated by a line break.
 
  • Like
Reactions: rashmi
Yes, there are several online tools that can help you split text into groups of characters. One such tool is Text Mechanic's "Add/Remove Line Breaks" tool. Here's how to use it:

1. Go to the Text Mechanic website.
2. Click on "Add/Remove Line Breaks".
3. Paste your text into the input box.
4. In the "Line Break Options" section, select "Add a line break every... characters".
5. Enter the number of characters you want in each group (e.g., 65530).
6. Click the "Add/Remove Line Breaks" button.

Your text will be split into groups of the specified number of characters, with each group separated by a line break.
The Text Mechanic website limits the field to a maximum of four figures. Is there any alternative website?
 
The Text Mechanic website limits the field to a maximum of four figures. Is there any alternative website?
Apologies for the confusion. If Text Mechanic isn't suitable, you could try using an online programming environment like Repl.it to write a simple script to split the text. Here's a basic Python script:

```python
def split_text(text, length):
return [text[i:i+length] for i in range(0, len(text), length)]

text = "Your text goes here"
chunks = split_text(text, 65530)

for chunk in chunks:
print(chunk)
```

Replace "Your text goes here" with your text. When you run the script, it will print the text split into chunks of 65530 characters.
 
  • Like
Reactions: rashmi
Apologies for the confusion. If Text Mechanic isn't suitable, you could try using an online programming environment like Repl.it to write a simple script to split the text. Here's a basic Python script:

```python
def split_text(text, length):
return [text[i:i+length] for i in range(0, len(text), length)]

text = "Your text goes here"
chunks = split_text(text, 65530)

for chunk in chunks:
print(chunk)
```

Replace "Your text goes here" with your text. When you run the script, it will print the text split into chunks of 65530 characters.
@Bot I converted the AdGuard DNS filter list into Cloudflare's REGEX format with your help. However, it turns out that Cloudflare's free plan has a maximum character limit of 65,536 for REGEX. The total number of characters in our REGEX exceeds 800,000. Because of this limit and the fact that the REGEX policy won't auto-update, it's not worth continuing. Thank you for your help!
 
@Bot I converted the AdGuard DNS filter list into Cloudflare's REGEX format with your help. However, it turns out that Cloudflare's free plan has a maximum character limit of 65,536 for REGEX. The total number of characters in our REGEX exceeds 800,000. Because of this limit and the fact that the REGEX policy won't auto-update, it's not worth continuing. Thank you for your help!
You're welcome! I'm sorry to hear about the limitations you've encountered with Cloudflare's free plan. If you have any other questions or need further assistance in the future, feel free to ask. Good luck with your projects!
 
  • Like
Reactions: Jack and rashmi
@Bot I converted the AdGuard DNS filter list into Cloudflare's REGEX format with your help. However, it turns out that Cloudflare's free plan has a maximum character limit of 65,536 for REGEX. The total number of characters in our REGEX exceeds 800,000. Because of this limit and the fact that the REGEX policy won't auto-update, it's not worth continuing. Thank you for your help!
If you're still interested in adblocking using cloudflare gateway, you can use this script GitHub - mrrfv/cloudflare-gateway-pihole-scripts: Use Cloudflare Gateway DNS/VPN to block ads, malware and tracking domains - free alternative to NextDNS, Pi-hole and Adguard
 
  • Like
Reactions: Jack and Sorrento
A couple of adblocking DNS servers:

162.243.154.60
64.16.214.40

205.204.88.60
178.21.23.150
 
  • Like
Reactions: Jonny Quest
Just the Content categories and Security risks & threats.
Do you use content categories for personal use or as parental control for kids? I currently use Cloudflare Gateway DNS with no policies, but I plan to use it as parental control for kids soon.
 
  • Like
Reactions: Sorrento
Do you use content categories for personal use or as parental control for kids? I currently use Cloudflare Gateway DNS with no policies, but I plan to use it as parental control for kids soon.
I use it on my router via DoT
 
  • Like
Reactions: rashmi
You're welcome! I'm sorry to hear about the limitations you've encountered with Cloudflare's free plan. If you have any other questions or need further assistance in the future, feel free to ask. Good luck with your projects!
Here is an example of a list. I want to keep only the domains (highlighted) and remove everything else. Is it possible with Notepad++?
! trackerdb_id:1000mercis trackerdb_category:site_analytics trackerdb_filter
||mmtro.com^$3p
! trackerdb_id:1000mercis trackerdb_category:site_analytics trackerdb_domain
||mmtro.com^
! trackerdb_id:161media trackerdb_category:advertising trackerdb_filter
||ads.creative-serving.com^$3p
! trackerdb_id:161media trackerdb_category:advertising trackerdb_filter
||p161.net^$3p
 
Here is an example of a list. I want to keep only the domains (highlighted) and remove everything else. Is it possible with Notepad++?
! trackerdb_id:1000mercis trackerdb_category:site_analytics trackerdb_filter
||mmtro.com^$3p
! trackerdb_id:1000mercis trackerdb_category:site_analytics trackerdb_domain
||mmtro.com^
! trackerdb_id:161media trackerdb_category:advertising trackerdb_filter
||ads.creative-serving.com^$3p
! trackerdb_id:161media trackerdb_category:advertising trackerdb_filter
||p161.net^$3p
Yes, it's possible with Notepad++. Use the 'Find & Replace' feature with regular expressions. Find: `.*\|\|(.*)\^.*` and replace with `\1`. This will keep only the domain names. Remember to select 'Regular expression' in the 'Search Mode'.
 
  • Like
Reactions: rashmi
Yes, it's possible with Notepad++. Use the 'Find & Replace' feature with regular expressions. Find: `.*\|\|(.*)\^.*` and replace with `\1`. This will keep only the domain names. Remember to select 'Regular expression' in the 'Search Mode'.
How do I remove such lines?
! trackerdb_id:1000mercis trackerdb_category:site_analytics trackerdb_filter
! trackerdb_id:161media trackerdb_category:advertising trackerdb_filter
! trackerdb_id:1dmp.io trackerdb_category:advertising trackerdb_filter
 
How do I remove such lines?
! trackerdb_id:1000mercis trackerdb_category:site_analytics trackerdb_filter
! trackerdb_id:161media trackerdb_category:advertising trackerdb_filter
! trackerdb_id:1dmp.io trackerdb_category:advertising trackerdb_filter
In Notepad++, use the 'Find & Replace' feature. In the 'Find what' field, enter `^!.*$` and leave the 'Replace with' field empty. Make sure 'Regular expression' is selected in 'Search Mode'. Then click 'Replace All'. This will remove all lines starting with '!'.
 
  • Like
Reactions: rashmi