MyBB Tutorials

RIP Protection

Submitted by zGeek, , Thread ID: 3270

Thread Closed
27-04-2015, 01:28 PM
This post was last modified: 27-04-2015, 01:36 PM by zGeek
#1
Hello!

I guess this is my first thread here and I'm not sure if this content is supposed to be posted here.
But anyway, this is NOT my content.

This tutorial is a simple guide explaining how you can stop amateur rippers from ripping your theme.
First, download this plugin; http://mods.mybb.com/view/imei-page-optimizer
Next, open the plugin in your preferred text editor.

Add the following code before function imeiPageOptimizer_info()

Code:
function stringToHex($string) {
      $hexString = '';
      for ($i=0; $i < strlen($string); $i++) {
        $hexString .= '%' . bin2hex($string[$i]);
      }
      return $hexString;
}

Search for the following line of code;

Code:
$report="<!-- optimization: ".round(100- $after*100/$before,2)."% by imeiPageOptimize in $time Seconds -->";

and replace it with;


Code:
$before = '<!DOCTYPE html><head><meta charset="utf-8" /><script>document.write(decodeURIComponent("';
$after2 = '"));</script></head><body><noscript>Please enable JavaScript before you use our forum. :)</noscript></body></html>';
$ret = $before.stringToHex($ret).$after2;


And there you have it, at the cost of hindering users that browse without JavaScript, you've made it pretty difficult for the average pleb to rip your theme.

NBB is having issues displaying the thread. Not sure why because it changes the code after being posted.

And it doesn't allow me to use Hide.

RE: RIP Protection

#2
how does this work just curious.

RE: RIP Protection

This post was last modified: 19-08-2015, 07:23 AM by linkzy
#3
15-08-2015, 10:14 AM
Mutual Wrote:
how does this work just curious.

it encodes the source of html. in view source page.


Well anyways, these themes can still be ripped :D
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: RIP Protection

#4
thanks for copypasta'ing my shit tutorial.
[Image: ZtDsXXv.png]

RE: RIP Protection

This post was last modified: 20-08-2015, 09:58 PM by redd
#5
Will this really stop them from ripping or is this just one of the any ways to decrease the chance of being ripped?

RE: RIP Protection

#6
20-08-2015, 09:58 PM
redd Wrote:
Will this really stop them from ripping or is this just one of the any ways to decrease the chance of being ripped?

It makes it more difficult.

RE: RIP Protection

#7
20-08-2015, 11:12 PM
Pulseeey Wrote:
20-08-2015, 09:58 PM
redd Wrote:
Will this really stop them from ripping or is this just one of the any ways to decrease the chance of being ripped?

It makes it more difficult.

Well i might add it to my forums :Smile Just another question can this be used on a ripped theme?

RE: RIP Protection

#8
Doesn't this is an added unnecessary burden?

RE: RIP Protection

#9
16-09-2015, 07:38 PM
Joseahfer Wrote:
Doesn't this is an added unnecessary burden?

If you're using a public theme or a ripped one, then you could say it's unnecessary.

If you use a custom theme, it's very important you use this.
yeah

RE: RIP Protection

#10
18-09-2015, 02:56 AM
Nyan Wrote:
16-09-2015, 07:38 PM
Joseahfer Wrote:
Doesn't this is an added unnecessary burden?

If you're using a public theme or a ripped one, then you could say it's unnecessary.

If you use a custom theme, it's very important you use this.

Sorry, maybe I explained wrong.

I understand the utility to use in a custom theme, my question is if I use this, the "junk code" doesn't affect the loading / site optimization.

Users browsing this thread: 1 Guest(s)