How can I enscript this php code?

Discussion in 'PHP' started by superman1, Aug 4, 2012.

  1. #1
    Hi guys, I have this code that is hidden from people but I think robots and some software can still read it on the page. Is there a way to make it hard to read for robots or unwanted software?

    
    
    <?php if(!$is_reported) { ?><b><?php echo $lang['REPORT_THIS_AD']; ?></b> <a href="javascript:confirmAbuseReport();"><?php echo $lang['REPORT_ABUSE_SPAM']; ?></a> 
    
    
    PHP:

    Thanks!
     
    superman1, Aug 4, 2012 IP
  2. writingwhiz

    writingwhiz Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    PHP code itself is not accessible by anyone other than who has access to your web server - it is "local only," if that makes sense.

    PHP is parsed by the web server and then outputted as HTML, usually through the "echo" operator.

    You can also simply hide robots from any part of your website with a "robots.txt" file (Google it for more info).
     
    writingwhiz, Aug 4, 2012 IP
  3. superman1

    superman1 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't think I explained myself well. I think what needs to be encoded or enscripted is that javascript and the link (

    $lang['REPORT_ABUSE_SPAM']). Are there standard ways of encoding something that the robots/bots/malicious software cannot read?
     
    superman1, Aug 4, 2012 IP
  4. ryogi

    ryogi Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Why you would want to encrypt JavaScript? I do not think robots care about JavaScript.
     
    ryogi, Aug 4, 2012 IP
  5. sonu21

    sonu21 Member

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #5
    You can encrypt it with Ioncube!
     
    sonu21, Aug 8, 2012 IP