Bandwidth MOD

Spacemail by SpaceshipSpacemail by 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.
GoDaddyGoDaddy
jimmeh said:
any progress on the CGI version? :P

Im also wondering this. I'd be willing to donote some np or a few $ via paypal to anyone who can do it ;/
 
0
•••
Evan said:
Im also wondering this. I'd be willing to donote some np or a few $ via paypal to anyone who can do it ;/

Same :D
 
0
•••
Sorry, I've not had much time as of late. I'm a bit rustier with it than I thought :D

I'll see if I can sit down this weekend and come up with something.

Eric
 
0
•••
Thankyou!!! :D:D:D
 
0
•••
Thx for the info waiting for cgi version...
 
Last edited:
0
•••
If anyone is wondering my offer is 200np and possible 5-10$ viapaypal
 
0
•••
I had to remove the script due to an error with some sites.

(using phproxy 0.4)

here is an example:

go to your proxy
type google.com
click google maps

what happens?
for me, it returns to the main page.


here is another example:

go to google via proxy.
click view image on the google logo & copy the url.
close your browser.
open a new browser and paste the url.

what happens?
for me, it goes right to the image. I would assume that it should go to the homepage here instead of the hotlinked image.

Is this happening for anyone else? please post your proxy and let me know if it is working or is not working.

thanks
 
0
•••
gr8wolf99 said:
I had to remove the script due to an error with some sites.

(using phproxy 0.4)

here is an example:

go to your proxy
type google.com
click google maps

what happens?
for me, it returns to the main page.


here is another example:

go to google via proxy.
click view image on the google logo & copy the url.
close your browser.
open a new browser and paste the url.

what happens?
for me, it goes right to the image. I would assume that it should go to the homepage here instead of the hotlinked image.

Is this happening for anyone else? please post your proxy and let me know if it is working or is not working.

thanks
Hello Mike,

Regarding your first problem: The problem when using google maps lies with phproxy, not my mod script, remove my mod script and do the same thing, it will have the same error. Unfortunately there is nothing I can do about that. It is simply the way phproxy 0.4 has been programmed, it has it's fair share of bugs :).

Regarding your second problem: If you copy and paste the url of a proxied image into your browser and go to it, then it will simply show the image, yes. This is NOT a problem. The script only blocks showing images when the image has been linked to by a website (you click on a link to go to the proxied image) or if it is being shown on another webpage.

Nobody goes to the trouble of copying a link off a website, closing their browser and clearing their cache so that there is no referer to view an image. This script WILL block images linked to, or shown on other webpages. I guarantee it :)

Hope you understand what I mean :)
 
Last edited:
0
•••
Great script :)

Works wonderfully. R+p'd added!

Edit:
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.

:hehe:
 
Last edited:
0
•••
antman.ws said:
Great script :)

Works wonderfully. R+p'd added!

Edit:
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.

:hehe:
hehe, thanks anyway anthony! Good to see another aussie round here too :D
 
0
•••
yes I understand now.

and I also see that the problem with google, froogle, maps, ect is a problem with phproxy.

I will be installing and using your script shortly. Thanks.!
+rep
 
0
•••
gr8wolf99 said:
yes I understand now.

and I also see that the problem with google, froogle, maps, ect is a problem with phproxy.

I will be installing and using your script shortly. Thanks.!
+rep
No problem at all,

Thanks for using the script :)
 
0
•••
Wow this will be extremely useful! :) Thanks!

Rep added :)
 
0
•••
Sorry to those who are waiting on the CGI version, I just can't get it to work :/ So there will be no cgi version from me :(

Too bad I don't know CGI aswell as PHP :p
 
0
•••
Awesome MOD, rep added.
 
0
•••
tophostfind said:
Wow this will be extremely useful! :) Thanks!

Rep added :)
Snurf said:
Awesome MOD, rep added.
Thanks people :)
SecondVersion said:
Sorry to those who are waiting on the CGI version, I just can't get it to work :/ So there will be no cgi version from me :(

Too bad I don't know CGI aswell as PHP :p
You can't be the greatest coder of two languages 2ndV ;), stop hogging lol ;) ;)

I'll see if I can give it a go soon, isn't it somewhat like php?
 
0
•••
ok when i added the code in my site the page to my sits not working i man it just redirectite i am getting 2 gb BW a day i dunno what to do ....
 
0
•••
rep added: thanks for sharing!
 
0
•••
deccanbazaar.biz said:
ok when i added the code in my site the page to my sits not working i man it just redirectite i am getting 2 gb BW a day i dunno what to do ....
Hey deccanbazaar.biz,
Not quite sure what you're saying lol could you re-word that please?
Marcvs said:
rep added: thanks for sharing!
Thankyou :)
 
0
•••
Not sure if it's against the rules, but I thought I'd bump this, as many people still don't have this ESSENTIAL mod!
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Live Options
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back