vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   I dont think no one had thought of this... (https://vborg.vbsupport.ru/showthread.php?t=42908)

Rapdis 08-29-2002 06:07 PM

I dont think no one had thought of this...
 
WHAT A BIG PROBLEM I HAVE.....

Bandwidth stealers...

people are using our hosted avatars on their sites... consuming a hell of a lot of bandwidth, is there a hack to stop this?

changeing avatar names daily and everywhere its displayed?

or something like that?

please help :ermm:

Chris M 08-29-2002 06:18 PM

There is a piece of code you can put in the avatar.php and attachment.php files to stop this...

Here :

PHP Code:

$referers = array ('www.yoursite.com','yoursite.com','your sites ip address'); 

function 
check_referer($referers){ 
   if (
count($referers)){ 
      
$found false
      
$temp explode('/',getenv("HTTP_REFERER")); 
      
$referer $temp[2]; 
      for (
$x=0$x count($referers); $x++){ 
         if (
ereg ($referers[$x], $referer)) { 
            
$found true
         } 
      } 
      if (!
$found){ 
      exit;
      } 
         return 
$found
      } else { 
         return 
true;
   } 


check_referer($referers); 

Just insert that after
PHP Code:

<?php

and before
PHP Code:

$noheader=1;

//require("./global.php"); 

You will need to change the "www.yoursite.com", "yoursite.com", and "your sites ip address" to your info;)

Satan

Rapdis 08-29-2002 06:32 PM

thanks man...

thank god...

also... i dont know my site IP, how can i check that?

Rapdis 08-29-2002 06:36 PM

is this it? http://www.eamnesia.com/hostinfo/i.jhtml

Rapdis 08-29-2002 06:38 PM

and will the IP eva change? if it does will the IP bit effect the site?

Logician 08-29-2002 06:39 PM

.htaccess tutorial in this thread can also help you configure your .htaccess to prevent stealing of ALL images of your site..

Chris M 08-29-2002 06:42 PM

Unless you have a dedicated ip, your ip you put as your host's ip...

Your ip should be in the admin panel of your site...

Satan


All times are GMT. The time now is 10:04 AM.

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.01016 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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