Unstoppable Domains

Bandwidth MOD

Spaceship Spaceship
Watch
Bandwidth MOD

Version:
1.1

Installation: Simply copy and paste the mod code into your index.php page, just below the '<?php' at the top of the page.

PHP:
/*
Bandwidth MOD 1.1
*/

// allow hotlinking from these sites, seperate by comma (make sure you eneter your site's domains)
$domains="www.yourdomain.com,yourdomain.com";

// convert domains into an array
$domains=explode(",",$domains);

  // if there is a request:
  if($_GET['q']!="")
  {
  // get referer
  $referer=explode("/",($_SERVER['HTTP_REFERER']));
    // if the referer is not allowed:
    if(!in_array($referer[2],$domains))
    {
    // redirect to homepage and finish script
    header("Location: http://".$domains[0]."/");

    exit();
    }
  }

/*
END MOD
*/
Best of luck
 
Last edited:
17
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
that's great, an extra savings on the bandwidth. thanks rep coming.
lol
We're glad that you're fond of this member, but please give some rep points to some other members before giving it to BillyConnite again.
 
0
•••
weblord said:
that's great, an extra savings on the bandwidth. thanks rep coming.
lol
We're glad that you're fond of this member, but please give some rep points to some other members before giving it to BillyConnite again.
lol Thanks anyway weblord! :D
 
0
•••
BillyConnite said:
lol Thanks anyway weblord! :D
yeah i must admit im fond of your avatar and your custom title looks serious to me.
 
0
•••
lol :D, shuan is sooo cool. Wallace and Gromit = AWESOME!
 
2
•••
Sweet mod dude. I used it and saved HEAPS of bandwidth. Rep coming your way. :)
 
0
•••
Excellent mod man, + rep.
 
0
•••
:D Thanks for the kind words all, and the rep. Hope it saves lots and lots :)
 
1
•••
Excellent information, rep added!
 
0
•••
Very interesting! Thanks alot!
 
0
•••
Rep added!
 
0
•••
No problem people :D
 
0
•••
Hey all :D, I've noticed a few people asking about a proxy bandwidth saver (from hotlniking) so just thought I'd give this a bump.
 
Last edited:
0
•••
Ah, this should be useful. I had the same problem a while back with another proxy site I used to run.
I'll add some rep in a minute.
 
0
•••
hairyfreak said:
Ah, this should be useful. I had the same problem a while back with another proxy site I used to run.
I'll add some rep in a minute.
Thanks Harry :tu:.
All the best!
 
Last edited:
0
•••
what about us that don't have php in our front page? :(

can you please suggest an alternative, or help please?

Sounds great, thanks for the advice :)
 
0
•••
jimmeh said:
what about us that don't have php in our front page? :(

can you please suggest an alternative, or help please?

Sounds great, thanks for the advice :)

Same problem here. My pages are all HTML. Probably need a javascript code instead???
 
0
•••
oo excellent .. i like it

well i dont use html .. i have a iframe so it worked for me.

also a quick question if you can help

i am getting alot of core. files

looks like

core.8956

but a bunch of them which takes alot of space

any idea how to stop that.

thanks

rep added
 
0
•••
Thanks for this, I have a friend who runs a few proxies who is struggling with excess bandwidth due to abuse. I will usggest this to him and see if it can help him to limit his lost bw.
 
0
•••
jimmeh said:
what about us that don't have php in our front page? :(

can you please suggest an alternative, or help please?

Sounds great, thanks for the advice :)
sandyfeet said:
jimmeh said:
what about us that don't have php in our front page? :(

can you please suggest an alternative, or help please?

Sounds great, thanks for the advice :)

Same problem here. My pages are all HTML. Probably need a javascript code instead???
Not sure what you mean by your pages being html, give me your website domains and I'll check it out for you :).
smub said:
oo excellent .. i like it

well i dont use html .. i have a iframe so it worked for me.

also a quick question if you can help

i am getting alot of core. files

looks like

core.8956

but a bunch of them which takes alot of space

any idea how to stop that.

thanks

rep added
What proxy software are you using? Something other than PHPoxy?
Xombie said:
Thanks for this, I have a friend who runs a few proxies who is struggling with excess bandwidth due to abuse. I will usggest this to him and see if it can help him to limit his lost bw.
No problem :D. Hope it helps your friend!

BTW - Just letting all know, a little rep doesn't hurt if you find this mod useful :D.
 
1
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back