1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Encrypting Wordpress Footer

Discussion in 'WordPress' started by bluemanteam, Jun 8, 2008.

  1. #1
    Does someone have a good tutorial on how to encrypt links in the wordpress theme footer?

    Thank you
    SEMrush
     
    bluemanteam, Jun 8, 2008 IP
    SEMrush
  2. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
  3. bluemanteam

    bluemanteam Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I've bookmarked the site. If you encode your footer using this site, isn't it fairly straightforward for someone to just delete the footer and create a blank footer and thereby eliminate your links?

    Is there anyway to add hooks between the different php files so that if the footer was replaced with a blank file, the theme would just "break".
     
    bluemanteam, Jun 9, 2008 IP
  4. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
    #4
    Yes, with most encoding you could just delete the footer or replace it with straight HTML source code you pulled through Firefox.

    It would be possible to do what you want so it "breaks" although I have never gone to those lengths. If no one can answer here, maybe try the PHP forum :)
     
    MTbiker, Jun 9, 2008 IP
  5. iitob

    iitob Well-Known Member

    Messages:
    630
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    108
    #5
    Looks like a nice tool, but how do you use the code? I've tried pasting the output where the links went, but it just shows up as text in the footer. Does something need to be installed to decode the encoded text in the theme?
     
    iitob, Jun 11, 2008 IP
  6. CaffinePhil

    CaffinePhil Banned

    Messages:
    947
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Does this just stop people amending the links that appear in the footer?
     
    CaffinePhil, Jun 11, 2008 IP
  7. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
    #7
    I don't use that, but I don't think it's as easy as cut and paste.

    http://us.php.net/base64_encode

    (If you go for an easy solution, it's just as easy or probably easier for a user to just delete your encrypted code and go on with life, making your effort useless anyway.)
     
    MTbiker, Jun 11, 2008 IP
  8. iitob

    iitob Well-Known Member

    Messages:
    630
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    108
    #8

    I agree whole-heartedly, but the fact that so many people advertise WP themes with encrypted footer links on DP leads me to believe there must a simple way to get it done. Either that or all WP sponsor guys on DP are PHP experts :)
     
    iitob, Jun 11, 2008 IP
  9. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
    #9
    I just checked that tool and it gives you the obfuscated code, but you still need to put that within a php function to decode it. Pretty simple for a PHP developer.

    But still, super easy to bypass by most people who know how to install WP.
     
    MTbiker, Jun 11, 2008 IP
  10. iitob

    iitob Well-Known Member

    Messages:
    630
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    108
    #10
    Agreed. I just want to be able to say it's encrypted because it's expected by people purchasing WP theme sponsorships.
     
    iitob, Jun 11, 2008 IP
  11. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I would love to know this, too.
     
    Pixelrage, Jun 11, 2008 IP
  12. arwen54

    arwen54 Active Member

    Messages:
    632
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    60
    #12
    I totally disagree with forcing the end users to have to keep sponsored links in the footers and I do create free WordPress themes. Based on my own experience with providing free themes and templates, most of the time the end user is more than happy to leave the designer link intact. I believe sponsors get plenty of exposure while your theme resides on the many theme sites.
     
    arwen54, Jun 11, 2008 IP
  13. beautyinmd

    beautyinmd Peon

    Messages:
    1,213
    Likes Received:
    121
    Best Answers:
    0
    Trophy Points:
    0
    #13
    There are easy ways to encode the footer- lots of encoders available for free or you can pay for them
     
    beautyinmd, Jun 11, 2008 IP
  14. hatrick24

    hatrick24 Peon

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    base64 encode is the best way. the link is posted before. i have another with a tutorial for it. will send that as soon as i can find it. :p
     
    hatrick24, Jun 11, 2008 IP
  15. ibnuasad

    ibnuasad Notable Member

    Messages:
    1,046
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    275
    #15
    There are also a lot of *DECODERS*...hehe :p
     
    ibnuasad, Jun 11, 2008 IP
  16. ahmadfarhan

    ahmadfarhan Peon

    Messages:
    211
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I never encrypt a wordpress theme footer before.. but i'm pretty sure they use php encoder like ioncude http://www.ioncube.com/ or zend guard(formerly zend encoder)( http://www.zend.com/en/products/guard/)

    there are alot of ways to make your theme break... since you can encode any code.. you can do something as simple as checking for an obscure variable name.. or as complicated as contacting you own web service to check the website for the footer link.

    but the trick is how to make it so that you only encode just enough so that the user can still customize the theme...
     
    ahmadfarhan, Jun 11, 2008 IP
  17. BigFatMan

    BigFatMan Banned

    Messages:
    57
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #17
    This is very useful information, have been searching for it actually. Thanks!
     
    BigFatMan, Jun 12, 2008 IP
  18. rmg

    rmg Peon

    Messages:
    208
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18
    you can try truebug encoder, it has a 15days trial or pay $24.95 for a single user registration. we purchased one and we haven't encounter any trouble using it for the past 4 months (almost 5). easy to use too.
     
    rmg, Jun 12, 2008 IP
    iitob likes this.
  19. iitob

    iitob Well-Known Member

    Messages:
    630
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    108
    #19
    Works perfectly! Thank you so much mate - I really appreciate this!

    +rep
     
    iitob, Jun 12, 2008 IP
  20. bluemanteam

    bluemanteam Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #20
    Do you use it just to encrypt the footer? Wouldn't that go back to the original point in that if only the footer is encrypted, it would be just a matter of replacing footer.php with a blank copy and encryption is defeated.

    Not that I've looked at a lot of different wordpress themes looking for sponsors on this site, but if that is all that is being done, am I mistaken or does this seem a tad weak?

    Isn't there any way to hook the footer with code in some other scripts so that if the footer code is modified, the rest of the design would "break"?
     
    bluemanteam, Jun 12, 2008 IP