MyBB Community Forums

Full Version: Link Anonymizer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I (I guess many) would love to see a "Link Anonymizer" feature in MyBB. That will automatically anonymize urls throughout throughout all threads .

Is there any kinda tutorial available on "How do I make hacks/mods for MyBB" or something like that (I searched the forum but couldn't find anything) ?
Please take a look into the Wiki. You will find some articles about mods and plugins over there.
Michael83 Wrote:Please take a look into the Wiki. You will find some articles about mods and plugins over there.

Is it possible to have MyBB SDK/Wiki in downloadable form?
I need Link Anonymizer as well, maybe someone could just tell which part of the script respond for link part of the post?
Ok, by "anonymizer" do you mean a mod that would automatically route all posted URLs through a proxy server? Or are you referring to a more general type that would strip out the http_referer header (which would keep webmasters at any site you link to from knowing where that traffic came from)?

If it's the latter, I already have that on my forum and would be happy to share the code with you. If the former, I don't think it's difficult to do, but I'd need to know a specific proxy service you wanted to use.
sahil made hack for me ;] i think he will public it here soon. I just needed any link anonymizer/redirector. Sahil made it like anonym.to/?---link---, and this is great.
d2vid Wrote:sahil made hack for me ;] i think he will public it here soon. I just needed any link anonymizer/redirector. Sahil made it like anonym.to/?---link---, and this is great.


1) upload the attachement to your forum/inc/plugins
2) activate it in admin panel
3) enjoy

What it does?
It is just a basic link anonymizer that parses urls found in threads. I have used http://www.anonym.to, you can change this to any service, you would like to use.

If you find any bug or would like to see some more features added to it, Plese let me know here on this thread.
Ok, so it was the second choice you wanted then? Anonym.to simply strips the referrer before sending you on to your link. That's easy to do and you can host the script on your own site (and links will still be anonymized). Here is what I use on my site, if anyone wants it.

First, create a file called "noref.php" or whatever you want to call it. In that file put:

<?php

$url = getenv(QUERY_STRING);

if ($url == '') 
{
die ('THIS SCRIPT CANNOT BE CALLED DIRECTLY!');
} 

?>

<html>
<meta http-equiv="refresh" content="0; URL=<?php echo $url ?>">
</html>
(the meta refresh destroys the http_referer)

Next, in MyBB, open inc/functions_post.php and FIND:
	$link = "<a href=\"$fullurl\" target=\"_blank\">$name</a>";

REPLACE this line with:
	$link = "<a href=\"http://www.YOURSITE.com/noref.php?$fullurl\" target=\"_blank\">$name</a>";
Make sure to change www.YOURSITE.COM to your website's URL.

Upload the changed file and upload the noref.php file to your site. All posted links will now be anonymized without relying on a 3rd party service.

Sahill's plugin is easier and probably preferred, I just figured I'd include that in case anyone would like to use a script on their own site instead of a service. Smile
I still don't get what the mod exactly does..

Could anyone give an example where I could use this mod for?
It changes links, so they are not going directly to the site, which means they are anonymized Wink and cannot be tracked.

Example of 1st hack:

Normal: http://google.com
Anonymized: http://google.com

The second one destroys the http_referer by "noref.php". So there must be this file on the server. You can add some text there, eg. You will be redirected to &link.

Example of 2nd hack:

Normal: http://google.com
Anonymized: http://google.com
Pages: 1 2