MyBB Tutorials

RIP Protection

Submitted by zGeek, , Thread ID: 3270

Thread Closed
zGeek
Aokie
Prime
Level:
0
Reputation:
26
Posts:
782
Likes:
60
Credits:
1.46K
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

Mutual
Closed Account
Level:
0
Reputation:
0
Posts:
103
Likes:
6
Credits:
0
15-08-2015, 10:14 AM
#2
how does this work just curious.

RE: RIP Protection

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
15-08-2015, 10:39 AM
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

cute
Married to Yuun
Vixen
Level:
4
Reputation:
50
Posts:
523
Likes:
92
Credits:
1.09K
19-08-2015, 04:17 AM
#4
thanks for copypasta'ing my shit tutorial.
[Image: ZtDsXXv.png]

RE: RIP Protection

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
20-08-2015, 09:58 PM
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

Pulseeey
The Mandingo Man
Staff
Level:
0
Reputation:
208
Posts:
968
Likes:
159
Credits:
1.69K
20-08-2015, 11:12 PM
#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

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
20-08-2015, 11:15 PM
#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

Joseahfer
Novice
Level:
0
Reputation:
0
Posts:
39
Likes:
4
Credits:
41
16-09-2015, 07:38 PM
#8
Doesn't this is an added unnecessary burden?

RE: RIP Protection

Sui
User Icon
nulledbb's very first gay user
Level:
1
Reputation:
297
Posts:
2.31K
Likes:
289
Credits:
22
18-09-2015, 02:56 AM
#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

Joseahfer
Novice
Level:
0
Reputation:
0
Posts:
39
Likes:
4
Credits:
41
18-09-2015, 03:08 AM
#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)