Results 1 to 2 of 2

Thread: How to Encrypt Footer Links in vBulletin Templates

  1. #1
    Gursimran is offline Newbie Net Builder
    Join Date
    Mar 2009
    Thanked 2 Times in 2 Posts

    How to Encrypt Footer Links in vBulletin Templates

    I am a temlpate designer and coder. Can anyone tell me how to encrypt code in vBulletin.

    I want to encrypt footer links.

  2. #2
    proxykinz's Avatar
    proxykinz is offline Unknown Net Builder
    Join Date
    Dec 2008
    Thanked 5 Times in 3 Posts
    Here is a great article written by Abishek Tripathi on how to encrypt footer links in Wordpress. You might be able to convert these instructions to work under vBulletin.

    Now it’s a relatively known fact that people tend to strip attribution links once they acquire designs from those free, open source design inventories. Be it Open Source Web Design templates, or Wordpress Themes, this has become a problem of many a developers and designers.

    A designer/developer invests time in creating a theme, and this is generally done to spread the word linking to their portfolio. Now there are very few people who let these attributions stay, most tend to strip them off. (Heck! Even I did it, in the last theme I was using. Alright, go on, shoot me)

    Here what I am going to teach you is to encode your footer links, such that when displayed in a PHP file it will look nothing more but gibberish text, but when the PHP file is called for it will output proper html text.

    Let’s Begin

    Let’s suppose we wanted to add some unremoveable text (e.g. a link back to our site) to the footer of a Wordpress theme. We could place some code in the theme’s functions.php file that looks something like this:

    function theme_credits()
    echo ‘Designed by <a href=””>Abhishek Tripathi</a>.’;
    The function theme_credits in the above code echoes a simple link back to our site, and the next line of code registers it as one of the functions called in the footer of the theme — or wherever you placed the bit of code:

    <?php wp_footer(); ?>
    Anyone with a little PHP knowledge could figure out what we’re up to almost immediately — which is where encryption comes in.

    At the very least we’ll need a couple of two-way encryption functions. One has to be text-based, and the other [optionally] byte-based. We’ll settle on base64_encode and gzdeflate. The text-based function encrypts the output of the byte-based function and outputs something we can paste in a text editor.

    If we Echo:

    echo base64_encode(gzdeflate(
    ‘function theme_credits()
    echo \’Designed by <a href=”http://www.example”>Example Designs</a>.\’;
    We get the string:

    j+8zDZ4yAYdcplQ2by03X4Ha95QCaUJQM642JtHBdcXjAJMQj0 1Jud4YqyUQv

    To run the code, we decrypt, then call eval on it:

    This is alright as is, but calling echo instead of eval on the string will reveal our code. For an increased layer of complexity, we can have it eval over and over again. Here’s a simple loop you can use to generate the code:

    $text = ‘function theme_credits()
    echo \’Designed by <a href=””>Example Design</a>.\’;
    add_action(\’wp_footer\’,\’theme_credits\’,30);’; // our code
    $num_times = 20; // number of times to encrypt
    for ($i = 0; $i < $num_times; $i++) {
    $text = “eval(gzinflate(base64_decode(’” . base64_encode(gzdeflate($text)) . “‘)));”;
    echo $text;
    The output in this case is:

    eval(gzinflate(base64_decode(‘DdJHDqxWAkDR5dgWA6 DIsjwgP3KOkxaxSEXOq++/hHt0qzMb/v6+7VgP2V79nWdbReL/K6
    XZO9SFtJ6uYL2R2Q7BTr7pXgCik59IGSWZvpH73PHiEt806hst 3FwtR7urIATeMrweGnkCge8RPbzQ+zo4vaeK+
    Uuu+TNMu33sRIcPDR1N+l774IE76G767ehYZ2zK8n2hWmfcGHX alVk5k8efagmfX4bWVItyCV6×2l6DZo5EiM6NRbMtx
    4+xGZoctm3maiS1cunjUFpwZp3MPJDxCRuyqBJVet9ZvFb3cRC vZBOa8m2v+VaASZksNan78Uuhq1h9ke1EHX0y
    IwvKJbnYxxOoqGrPx0qYkdmsq4+VcbVJ5vt4VvuryiqBZnaOKo V9Kw/eTjO7VpZgG23OtQuO6HLopTuTMzqMJXBhQl
    4p8ax/yOuIJYP1whbXcm6cDCJvSh5gUNZtgsTBYjsEqWqMB3Tg1IPalW +svS9mUsnN8em1rEn4tpqVBOzVrTS9aH
    BW5zG7au6fsQEQWLY806ou29EucPU1gYPqwgJBcvtecNbKYKgd s6AP0T1lJBkbaiiLpkfUF8c9KE2bB0S1HyosCu/zp
    xD0K0jyPkF0RPcdv2cFJuQfYphTibXl3L11jhd+ncujARJO+OQ LnIhipicR2HE326GDncCHl0UukRwvCxgNByXUyZqA7N
    /3rnXF6s5OebZW32orxTuqHkF8KAzY9TidRpZ5fer9Di1vupuUO cOytxf5NN1A+QQQXV4yJ3hIkBogpn2uoiAjQSgf3H
    TA+bqMXjgq5IaFmTLQs8FIuv0dIHvnndOzupWpd1aXWUQNbMUa JY61EZfgmB5fPqGFi8ezogEDJjcHlzbnwUDy+Apz
    GMtl1DYN4SQcBlc+dR7kxyQxUj8jQpcG5v2dtlsxDR+J4p0DW+ mbJ39zhdq5qaMN+pGRSNyy41WNaM80PMKVGYIErg
    ufrZB3muO0IXSPCy1qQ5FFQQ1puoMZpe6yDepTbWBbyMXRiXyj Ln04xO9abN8Fr6In9Mw6APvgeMwihkhI/DB7Ppxf
    yr/vvFOWFo35K51op51WPdfX0NyB7dvGqCxxbT9DEoHZGQ49ptQlC z8Z4u0Qa7kTjuz2QAE9LUWcxnhLplVIrswoIJfy

    So there you have it: a way to hide your code.

    Hope some of you find it helpful. Happy Developing.

    Note: For all encrypted strings posted here, ignore the new lines. I had to do them so the theme won’t break.

  3. Thanked by:

    Aquarezz (21 March, 2009)

Similar Threads

  1. [vBulletin] - Securing Your Vbulletin Installation
    By StephenM in forum Community Software
    Replies: 0
    Last Post: 1 August, 2010, 00:20 AM
  2. Replies: 0
    Last Post: 1 April, 2010, 22:57 PM
  3. Sponsor links on wordpress templates- is it spamming?
    By digitalservice in forum Promoting
    Replies: 3
    Last Post: 4 March, 2010, 11:52 AM
  4. Wordpress Themes Footer Links Legal Issues
    By Hellas in forum Wordpress
    Replies: 12
    Last Post: 2 December, 2009, 11:22 AM
  5. How To Encrypt A Footer Link
    By 5starpix in forum Programming
    Replies: 4
    Last Post: 30 December, 2008, 03:06 AM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts