noscrape/noscrape

Noscrape utilizes true-type fonts to obfuscate strings and integers, providing robust anti-scraping measures for websites and applications. It generates a new font with shuffled unicodes, making it nearly impossible to reverse-engineer and decipher data without the obfuscation-font.

Fund package maintenance!
noscrape

v1.1.3 2024-08-07 20:33 UTC

This package is auto-updated.

Last update: 2025-04-11 01:36:56 UTC


README

Installation

  • add repository to your composer.json
$ composer require noscrape/noscrape

Example Usage

$noscrape = new Noscrape('path/to/font.ttf');

$text1 = $noscrape->obfuscate("placeholder text");
$text2 = $noscrape->obfuscate("another placeholder text");
$font = $noscrape->render();

# in your template header ...

in your template

<style>
    @font-face {
        font-family: 'noscrape-obfuscated';
        src: url("data:font/truetype;charset=utf-8;base64,{{ $font }}");
    }
    .obfuscated {
        font-family: "noscrape-obfuscated";
    }
</style>

...

<div class="obfuscated">{{ $text1 }}</div>
<div class="obfuscated">{{ $text2 }}</div>

Supported CPU Architectures

  • Darwin Arm64
  • Darwin x86_64
  • Linux Arm64
  • Linux x86_64
  • Windows x86_64

if you miss your needed os/arch, feel free to contact us noscrape@gmx.de or simply open a new issue