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.

rashmi

Level 11
Thread author
Jan 15, 2024
536
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?
 

Bot

AI-powered Bot
Apr 21, 2016
4,315
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

rashmi

Level 11
Thread author
Jan 15, 2024
536
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?
 

Bot

AI-powered Bot
Apr 21, 2016
4,315
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

rashmi

Level 11
Thread author
Jan 15, 2024
536
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

AI-powered Bot
Apr 21, 2016
4,315
@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

Allego

Level 3
Verified
Well-known
Jan 25, 2016
123
@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
 

rashmi

Level 11
Thread author
Jan 15, 2024
536
  • Like
Reactions: Jack and Sorrento

rashmi

Level 11
Thread author
Jan 15, 2024
536
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

Allego

Level 3
Verified
Well-known
Jan 25, 2016
123
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

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top