PHP code example of arnchon / htmlsourceprotector

1. Go to this page and download the library: Download arnchon/htmlsourceprotector library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

arnchon / htmlsourceprotector example snippets




if(file_exists('vendor/autoload.php')){
  re_once 'src/protector.php';
}

if(file_exists('protector.php')){
  

<-- Code written above the [$html = new ArnchON\HTMLSourceProtector\Crypt;] line of code will not be encrypted-->
<-- You can put code like AdSense verification code here so the crawlers can read it -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0000000000000000" crossorigin="anonymous"></script>

<-- Code written under here cannot be read by crawlers -->


if(file_exists('vendor/autoload.php')){
  
echo(file_get_contents('filename.php'));