PDA

View Full Version : How to stop cross linking of attachments within forum?


Sweet Cheeks
01-18-2003, 04:36 PM
I searched around the hacks dbase and could only find hacks that prevented hotlinking from outside the site. Perhaps I missed one, but what I am looking for is a hack to prevent cross linking from within the forums?

My problem is users are posting a "test" thread in our tech forum, then linking to that attachment and using it in their sigs :paranoid: Any ideas on how to take care of this?

Thanks for your help :D

Neo
01-18-2003, 05:30 PM
I will look into it, I am sure it is a very small hack. I have seen it done on a few other sites.

Sweet Cheeks
01-18-2003, 07:37 PM
Cool Neo, thank you :D

sabret00the
01-20-2003, 11:36 PM
any update on this?

WetWired
01-21-2003, 11:57 AM
There is an option in the vB options to prevent the img tag being used with ? , when set to prevent this, these sigs will no longer work, and most likely they will stop trying.

Sweet Cheeks
01-21-2003, 04:23 PM
Originally posted by WetWired
There is an option in the vB options to prevent the img tag being used with ? , when set to prevent this, these sigs will no longer work, and most likely they will stop trying.

Hmmm I will see if I can find this, thanks :cool:

sabret00the
03-08-2003, 07:31 PM
but say if you wanna be ale to use images with dynamic urls but don't want ppl using attachments as sigs

Erwin
03-09-2003, 01:09 AM
In members.php

Find:


$signature=htmlspecialchars($bbuserinfo[signature]);


Above it, add:


if (strstr($signature,'attachment.php')) {
eval("standarderror(\"".gettemplate("error_noattachmentallowed")."\");");
exit;
}


Then ADD a NEW template called "error_noattachmentallowed" with the contents:


No attachments allowed in signature.


Not tested, but should work...

sabret00the
03-10-2003, 09:59 AM
thanks irwin, i'll try it out (Y)