Welcome to Geeklog, Anonymous Sunday, March 03 2024 @ 03:04 pm EST

Geeklog Forums

Security : Check your index.php

Status: offline


Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
The main index.php file size is 16198 for the last geeklog release. If the size is different you have been hacked. To avoid this, add a fresh index.php in a secret folder out of your public_html folder, and add this code in your lib_custom.php file:
Text Formatted Code

//Security check
$filename = $_CONF['path_html'] . 'index.php';
if (filesize($filename) <> 16198) {
        if (!copy($_CONF['path'] . 'my_secret_folder/index.php', $filename)) {
                $message = "Failed to replace index.php";
        } else {
                $message = "index.php was replaced!";
        COM_mail($_CONF['site_mail'], $_CONF['site_name']. ' hacked!', $message);

I'm available to customise your themes or plugins for your Geeklog CMS

All times are EST. The time is now 03:04 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content