Jump to content

com aumentar la seguridad


panchompc

Recommended Posts

lo que hacen es agregar un index en cada carpeta del foro, por ejemplo este es un index.php del foro smf que evita el hack:

 

<?php

 

// This file is here solely to protect your Packages directory.

 

// Look for Settings.php....

if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))

{

// Found it!

require(dirname(dirname(__FILE__)) . '/Settings.php');

header('Location: ' . $boardurl);

}

// Can't find it... just forget it.

else

exit;

 

?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...