![]() |
|
Beautiful. :)
[high]* Link14716 installs. :) [/high] http://www.vggmn.com/forums/attachme...?s=&postid=148 |
Very cool, works great on 2.2.9 :banana:
|
Ack!!! Could this be due to Firewalls people have installed on their machines? :paranoid:
So far I have had 3 users that are getting the replacement image (the one that says you arent supposed to link outside the site) on the avatar areas and for anything that is attached This is very strange, any ideas? Here's the entire code I am using: // Cross-link hack by Guru 2/24/2002 // Check that we aren't linked somewhere else $url = parse_url($HTTP_REFERER); $checkurl = strtolower($url["host"]); if (! strstr($checkurl, "belliesandbabies.com")) { // Remove this code if you just want to break the image // Substitute my Logo header("Content-Type: image/gif"); $filename = "http://www.belliesandbabies.com/bandwidtherror.gif"; $image = fread(fopen($filename,"r"),100000); echo $image; fclose($image); // End Substitute my Logo exit; } |
|
sweet.
:) |
Quote:
|
Quote:
|
|
I can't get this to work, can somebody give me the exact code if my website were http://www.TheForumz.com and my image was in http://www.TheForumz.com/images/bandwidth_stealer.gif
|
It doesn't work for me! I had to add more that one domain! With one domain there are no Problems! Can you help me??
cu Jochen |
Greets!
Does this hack work .rar, .zip and other binary attachments? Thanks! |
How do I add multiple domains?
I tried this if ((false === strpos($checkurl, "firstdomain") || (false === strpos($checkurl, "seconddomain") || (false === strpos($checkurl, "thirddomain")) { like was said in previous posts in this thread, but it didn't work. Can somebody help me with how I would add more domains to be allowed? Many thanks! |
You would want to check that ALL domain possibilities are false, so substitute "&&" for the "||" This will require ALL the domain checks to return false, which is what you want in this case.
|
Quote:
|
It works for me, but it also blocks my own site members from viewing attachments.. Can someone help me.. I am taking out the code for another image, just breaking up the image with the exit line. Help.. But it does work, i checked the sites where my members link to and the image was a red ex. But it also blocks my own site.. thanksl.
|
On my site, some users have problems if their security settings block the "HTTP-REFERER" header that this hack depends on. Try lowering your own security settings to see if that fixes it.
It might be time to redesign or revise this hack to work better with newer browsers and vB? |
Quote:
Agreed. I tried the security settings and it made no diff.. :( |
|
This should work with vB 3.0. Put the same code in attachment.php.
|
Will this be available in vB3?
|
test
http://www.sephirothsfollowers.com/f...p?postid=17627 I only seem to get error messages... Vb2.3.5 Linux Servers Ie 6.somethin... |
Hi greate Hack!
is it possible to use this hack with https connection from a 2nd domain listed in the if condition? I don't know if https sends a usefull Referer... Regards |
Does this work for vB 3.5.x?
|
works fine with 3.6.1
|
All times are GMT. The time now is 09:21 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|