Log in

View Full Version : how to protect my forum?


flasher33
10-04-2009, 10:03 PM
Hi there I always like to use custom styles and many times i get hacked (forumhome) template get changed by the hacker.
I have found this thread that gives an Idea on how to protect your forumhome template from being changed.
still I have a few questions that I like help with.

ok here goes.

upload the attached text named (forumhome.txt) file to your vb folder

go to your vb folder >> includes>>functions.php

look for // use legacy postbit if necessary

before it add

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADD BY MGHOOL - A
if ($templatename == 'FORUMHOME' AND @file_exists('FORUMHOME.txt')) {
return @file_get_contents('FORUMHOME.txt');
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADD BY MGHOOL - V


the good Idea about this is even if your forumhome template is changed the template will be called from the .txt file

this is a good Idea but when applying it some plug-ins stopped working (cyb 24x visitors & statistics ) I tried to delete the content of the forumhome.txt and pasted my forums own forumhome template but with no luck.

is there a way to manage this successfully ?
is yes this would be a grate idea to protect my forumhome template from being changed.

Note: thanx to Majhool he's the one qho came up with this idea.
quoted from here (http://www.3hood.org/t-96353.html)

flasher33
10-07-2009, 05:47 AM
any help would be nice

Video Rob
10-07-2009, 12:30 PM
Can't your host help you with this?

I had some blogs that were getting hacked, my host managed to make them secure for me

flasher33
10-07-2009, 08:28 PM
well sure they might but I have to pay for it.
and hacking (template changing) only might occur when using custom styles.
the main point of this topic is to make the forumhome template be read from the txt file not from the DB.
and it works so far even if you del the forumhome template it will not be changed
the only thisng that I am facing is when using the forumhome.txt any plug-inn wont work
like cyb's hacks