Protect your privacy on your website with DivProtector from bots, spam, etc… franaise


Description :

This script was imagined to protect private data (emails, curriculum vitae, content …) in a div from indexation from bots or unauthorized use by spammers etc…

Check on Google cache, archive.org etc… the number of private data who are available…Don’t expose anymore your privacy !

This script also works offline. He protects also content from indexation by local search engines like Google Search Desktop or Msn Search Desktop.

Support This Project

Demonstration :

In the bottom of the menu.

How it works :

This script was written in PHP and Javascript.

All you need is a PHP 4 or 5 server with GD activated and a client with javascript.

On each page load, a captcha is generated. The protected content is in the Html but encrypted. When the visitor copy the captcha code in the form, the div content appears.

This script uses lightweight encryption algorithm based on XOR operation.
He his robust enough to protect your private data from indexation.

Example :

You will find a example in the file.

Support :

You will find forums, repository, download mirror etc… there : DivProtector on Sourceforge.

Installation :

  1. Download the script here.

  2. Extract all files (divprotector.inc.php, divprotector.lang.php, cour.ttf,acidic.ttf, divprotector.js, refresh.png)
  3. Create a directory tmp with write right (0777 mask).
  4. Add in all pages who contains protected div :
    • At the start of the file. Don’t forget to change the language file and the secret key :
      [php]
      <?php
      require(”divprotector.inc.php”);
      require(”divprotector.en>.php”);

      // ConfigArray
      $CAPTCHA_INIT = array(
      ‘tempfolder’ => ‘tmp/’, // string: absolute path (with trailing slash!) to a writeable tempfolder which is also accessible via HTTP!
      ‘TTF_folder’ => ‘./’, // string: absolute path (with trailing slash!) to folder which contains your TrueType-Fontfiles.
      ‘TTF_RANGE’ => array(’cour.TTF’,'Acidic.ttf’),

      ‘chars’ => 5, // integer: number of chars to use for ID
      ‘minsize’ => 15, // integer: minimal size of chars
      ‘maxsize’ => 20, // integer: maximal size of chars
      ‘maxrotation’ => 25, // integer: define the maximal angle for char-rotation, good results are between 0 and 30

      ‘noise’ => TRUE, // boolean: TRUE = noisy chars | FALSE = grid
      ‘websafecolors’ => FALSE, // boolean
      ‘refreshlink’ => TRUE, // boolean
      ‘lang’ => ‘en’, // string: [’en’|'de’]
      ‘maxtry’ => 3, // integer: [1-9]

      ‘badguys_url’ => ‘/’, // string: URL
      secretstring‘ => ‘CHANGE ME OR IT IS USELESS TO PROTECT YOU’,
      ’secretposition’ => 15, // integer: [1-32]

      ‘debug’ => FALSE
      );

      $captcha =& new hn_captcha($CAPTCHA_INIT);
      $captcha_key = $captcha->make_captcha();
      $crypted_captcha_key = alphac(strtoupper($captcha_key),strtoupper($captcha_key),1);
      cleanOldCaptcha(’./tmp/’);
      ?>
      [/php]

    • In the headers : [html]

      [/html]
    • Modify the body tag and add onLoad event : [html]onLoad=”JavascriptOK()”[/html]
    • Add the div who will contain the protected data and his script : [html]
      <?=$lg[’NoJavascript’];>

      [/html]

    • Edit the language file and add your data to protect in the value of the key CaptchaProtectedMessage.
  5. Good luck !
  6. PS : all jpg in the temporary directory are automatically deleted when older than 2 days

This software license is GPL or commercial. Please send me an email for quotation.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.