![]() |
odd indeed :confused:
Do you get the same error? |
Nope. It just shows a red x in images and automatically redirects me (even with links from inside the site)
|
ooh found the mofo
http://www.php.net/manual/en/functio...-reporting.php |
Set error_reporting to E_ALL in your php.ini and you will get a PHP error notice message.
|
User error. http://smilies.xibase.com/laugh5.gif
I left **DOMAINNAME** in there when redoing the modifications to avatar.php |
erm let me see this stop's hotlinking by when someone views the file from out side of the domain there taken back to the profile page or post im i right?
Now lets look at this you got a forum for a group along with other sites about the same group some user's use more then one board. Now lets say someone upload's a av to my board with this hotlinking code installed then they go to a other sites board and hotlink to the av on my board now whats going happen when that person views there profile of any posts they have made on that other board? Yes they be taken back to my forums and so will any other person that views a post on that board that person has posted in. great way to get hits but will not make you many friends. |
Do you mean when someone enters the URL to the avatar in the custom URL box at another site? It won't even work because the contents of the avatar file will be text (the redirection message). The board (if it's vBulletin, anyway) would give an error message saying it's not a correct file type or something.
If they use an IMG tag to link to it, it will show up as a red X, and when someone drags the link to it into the address bar or puts a URL tag around it, it will link to the redirection notice and the profile page. I don't see why protecting one's bandwidth from getting stolen without the person viewing the site it's getting stolen from is such a bad thing, unless you have hundreds of gigs to give away, but if it's not for you, then just don't install it. (holy run-on sentence batman!) You don't have to attack the people that prefer to use it. |
Damn :(
I had to uninstall this at my own site. It was causing avatars and attachments not to show up for people behind firewalls or using browsers that didn't send referrer info through links. Just letting you know in case any of your members speak up and say they're not seeing avatars or attachments. |
I wrote a little bit of code that I stuffed at the very very top of avatar.php, attachment.php and journalpic.php (a self-written image send file much like the other two, used for my own Journal System)...
If you paste an avatar/attachment url in your browser directly, it works (which is much nicer for your bandwidth than _redirecting them to threads on your site_ :p), if you use them on other sites however (as part of the HTML page), they won't work and the image you will see there is a fake no-deeplinking-image that you make yourself (mine says "No banana my friend!" :)). It checks the URL to match your own domain but in a more efficient way (the one from this hack can easily be spoofed, thus, it won't work then) Notes: a) the {0,15} at the (relative) start will match for subdomain(s) or lack thereof. If you have a subdomain longer than 15 characters, make the 15 number higher :) (it also works for http://yourdomain.com, thus, without www. ) b) the path directive is a full path towards the image you'll be serving out, check your own host's settings to see what exactly you need to enter there :) PHP Code:
Any questions? PM me (I doubt I'll ever see this thread again if I don't get pm'd a question... :)) |
Wow, I'm really impressed with myself right now! I'm such a newbie, its ridiculous!
Here's an error in your attachment code: "/showthread.php?s=".$session[sessionhash]."&threadid=".$redirectquery[threadid]."#post".$redirectquer y[postid]; $redirecttype = "post"; The space from $redirectquer to y[postid] had it not working. I fixed that and all is good now! Well done man! |
All times are GMT. The time now is 05:16 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:
|