Noah Hawryshko
Senior Member
- Apr 28, 2016
- 901
- 891
As many Facebook marketers know, your landing pages are tracked by image hash. I didn't realize this and got caught by Facebook, then had my landing pages banned. Today I'll do my duty to society (kidding) and show you how to rehash any file without damaging it in any way. Note that this doesn't work for certain files that verify their authenticity, like those that exercise piracy protection (Mirror's edge, Pokemon Black, Denuvo-based games) but it will not affect any others.
Basically you just add a newline character at the end of every file to rehash it, so when Facebook or any other computer that doesn't do pixel-based verification looks at it, it seems like an entirely different file. We will do this using a Windows command prompt. Open up CMD, navigate to the directory with the file you want to re-hash with cd /d 'directoryname' where directoryname is the name of the directory you want to move to. Then, type in echo -n ' ' >> image.jpg where image.jpg is the name and file extension of the file you want to rehash.. This will add a "newline" character at the bottom of the file, making it look completely unique to computers that calculate hash values to identify images with one another.
Too complicated? I created a script that will do it for you if it's an image. First, make sure you're on Windows 7 or later. Go into your documents and create a folder called "pics". After this, put in any .jpg file and rename it "original.jpg" without the quotes. Then, go to "http://pastebin.com/6smwPi9N" without the quotes and copy and paste the script from there into Notepad (Windows key + R, then type Notepad and press enter). Go to File > Save in Notepad, and under "Save as type", click it and switch it to "All files". Then save your script as imagerehasher.bat (doesn't matter as long as it's something.bat). Then, run the script and in your "pics" directory will be 50 new images that look exactly like your old ones, yet are completely unique to anything that hash verifies.
Basically you just add a newline character at the end of every file to rehash it, so when Facebook or any other computer that doesn't do pixel-based verification looks at it, it seems like an entirely different file. We will do this using a Windows command prompt. Open up CMD, navigate to the directory with the file you want to re-hash with cd /d 'directoryname' where directoryname is the name of the directory you want to move to. Then, type in echo -n ' ' >> image.jpg where image.jpg is the name and file extension of the file you want to rehash.. This will add a "newline" character at the bottom of the file, making it look completely unique to computers that calculate hash values to identify images with one another.
Too complicated? I created a script that will do it for you if it's an image. First, make sure you're on Windows 7 or later. Go into your documents and create a folder called "pics". After this, put in any .jpg file and rename it "original.jpg" without the quotes. Then, go to "http://pastebin.com/6smwPi9N" without the quotes and copy and paste the script from there into Notepad (Windows key + R, then type Notepad and press enter). Go to File > Save in Notepad, and under "Save as type", click it and switch it to "All files". Then save your script as imagerehasher.bat (doesn't matter as long as it's something.bat). Then, run the script and in your "pics" directory will be 50 new images that look exactly like your old ones, yet are completely unique to anything that hash verifies.