Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2007, 02:16 AM
mattcaswell mattcaswell is offline
 
Join Date: Aug 2006
Location: Mesa, AZ
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default My board has been Hijacked!

someone registered "sabrehood.com" and when that 's typed in, it opens my forum in a frame below his ad for motorcycle parts. My forum has been hijacked and I want to add some code to index.php that will close his window and then open my forum in the full window without his advertisement on the top over my banner.

Can someone tell me how to do this in php?

My board is at: www.thesabrehood.org


I appreciate your time and help in getting rid of this "unwanted" advertising hijack!


Thanks,
matt caswell
Reply With Quote
  #2  
Old 10-23-2007, 02:24 AM
theFAILURE's Avatar
theFAILURE theFAILURE is offline
 
Join Date: Jan 2005
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like some iframe code.

He has his banner / header up top, then a <iframe> YOUR SITE HERE </iframe> beneath it.

Well not EXACTLY like that, but you get the idea.

You need to find a way to stop your site from being iframed.
Reply With Quote
  #3  
Old 10-23-2007, 03:28 AM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like you've sorted it now.
Reply With Quote
  #4  
Old 10-23-2007, 10:01 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He hijacked your board by registering a user with the username sabrehood[dot]com ? :erm:

I doubt that had anything to do with it really It's probably because you are running an outdated version of vBulletin. Make sure your using the most recent version available.
Reply With Quote
  #5  
Old 10-23-2007, 10:22 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If i understand this correct, it is not your site hijacked, but he includes your content (in an iframe) on his domain.

Can probably be blocked using a .htaccess to disallow linking from external sites, but not a real expert on this.
Reply With Quote
  #6  
Old 10-24-2007, 01:25 AM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

or you could have a checker
if $_DOMAIN != THEsabrehood.com
header('Location: http://www.thesabrehood.com/');


That should piss him off
Reply With Quote
  #7  
Old 10-24-2007, 01:43 AM
mattcaswell mattcaswell is offline
 
Join Date: Aug 2006
Location: Mesa, AZ
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Blaine0002 View Post
or you could have a checker
if $_DOMAIN != THEsabrehood.com
header('Location: http://www.thesabrehood.com/');


That should piss him off
mine is "thesabrehood.com /.org/.net

He's using just "sabrehood.com"

Where would I put this checker?

Thanks so much for your help.

matt
Reply With Quote
  #8  
Old 10-24-2007, 01:49 AM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make a new plugin, location global_start and any name you want
Code:
if ($_SERVER['HTTP_HOST'] != thesabrehood.com || $_SERVER['HTTP_HOST'] != thesabrehood.org || $_SERVER['HTTP_HOST'] != thesabrehood.net) {
header('Location: http://www.thesabrehood.com/');
}
though i wouldnt install that code untill somone confirms it.
if it dosent work properly it might lock you out of your own site untill you temporarily disable plugins, so i guess wait for a confirmation from a better coder than I.
Reply With Quote
  #9  
Old 10-25-2007, 02:57 AM
testebr testebr is offline
 
Join Date: Jan 2004
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add this javascript code to your headinclude template:

<SCRIPT TYPE="text/javascript">
<!--
if (top.frames.length!=0)
top.location=self.document.location;
// -->
</SCRIPT>
Reply With Quote
  #10  
Old 10-25-2007, 04:07 AM
mattcaswell mattcaswell is offline
 
Join Date: Aug 2006
Location: Mesa, AZ
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for all the suggestions and help. I was able to get him to de-link my board after calling him and confronting him for theft of content and bandwidth.

Matt Caswell
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06620 seconds
  • Memory Usage 2,252KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete