RIP Protection

by zGeek - 27-04-2015, 01:28 PM
Aokie
Posts:
882
Joined:
Feb 2015
Likes:
56
Credits:
1,318
Reputation:
26
2 Years of Service
#1
OP
Posted: 27-04-2015, 01:28 PM (This post was last modified: 27-04-2015, 01:36 PM by zGeek. Edit Reason: Idk what happened )
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.
Closed Account
Posts:
108
Joined:
Aug 2015
Likes:
6
Credits:
0
Reputation:
0
2 Years of Service
#2
Posted: 15-08-2015, 10:14 AM
how does this work just curious.
لا إله إلا الله‎
Posts:
6,328
Joined:
Jan 2015
Likes:
301
Credits:
363
Reputation:
162
2 Years of Service
#3
Posted: 15-08-2015, 10:39 AM (This post was last modified: 19-08-2015, 07:23 AM by linkzy.)
(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- Best forever .. | v4hl - ;) | Addicted | Senpai | Nyan | Sensei | H | fdigl |
[Image: gZD4Fba.png]

ᶠᵃᵈʸ'ˢ ʷᵃᶦᶠᵘ
Posts:
544
Joined:
Jan 2015
Likes:
67
Credits:
1,135
Reputation:
37
2 Years of Service
#4
Posted: 19-08-2015, 04:17 AM
thanks for copypasta'ing my shit tutorial.
Faded is cute Heart
Active Member
Posts:
387
Joined:
Aug 2015
Likes:
6
Credits:
16
Reputation:
3
2 Years of Service
#5
Posted: 20-08-2015, 09:58 PM (This post was last modified: 20-08-2015, 09:58 PM by redd.)
Will this really stop them from ripping or is this just one of the any ways to decrease the chance of being ripped?
The Mandingo Man
Posts:
901
Joined:
Jan 2015
Likes:
132
Credits:
2,037
Reputation:
123
2 Years of Service
#6
Posted: 20-08-2015, 11:12 PM
(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.
[Image: jqsoo2y.png]
Active Member
Posts:
387
Joined:
Aug 2015
Likes:
6
Credits:
16
Reputation:
3
2 Years of Service
#7
Posted: 20-08-2015, 11:15 PM
(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?    
Novice
Posts:
42
Joined:
Sep 2015
Likes:
4
Credits:
41
Reputation:
0
2 Years of Service
#8
Posted: 16-09-2015, 07:38 PM
Doesn't this is an added unnecessary burden?
underage asian twink
Posts:
2,411
Joined:
Jun 2015
Likes:
214
Credits:
13
Reputation:
218
2 Years of Service
#9
Posted: 18-09-2015, 02:56 AM
(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.
dead
Novice
Posts:
42
Joined:
Sep 2015
Likes:
4
Credits:
41
Reputation:
0
2 Years of Service
#10
Posted: 18-09-2015, 03:08 AM
(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.
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)