vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how to protect my forum? (https://vborg.vbsupport.ru/showthread.php?t=224568)

flasher33 10-04-2009 10:03 PM

how to protect my forum?
 
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
PHP Code:

// use legacy postbit if necessary 

before it add

PHP Code:

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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

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


All times are GMT. The time now is 11:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00959 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete