News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How to redirect [url][/url]

Started by Alfjan, January 23, 2019, 01:53:26 AM

Previous topic - Next topic

Alfjan

Hello,

I'm not sure, if this ist the correct place for my request. Sorry if I miss.

I like to modify all hxxp:http://://... [nonactive] 

https:// -> https://anonym.to/?[b]https://...[/b]
http:// -> https://anonym.to/?[b]http://...[/b]


How can I do this?

br360

Did you get an SSL certificate yet? If so, this step by step tutorial should help- https://www.simplemachines.org/community/index.php?topic=555034.0

Alfjan

I think I did not explain too clearly.

I want to automaticly change an outgoing http Adress to https://anonym.to/?[b]https://[/b] or https://anonym.to/?[b]http://[/b] the part between ist the origial link postet on the board. I tried it with word zensoring to chang it but I got too many changes, because it replaces the same part http: oder htps: more than once.

After that I change the url tag in bbc setion in subs.php but I get http://hxxp:anonym.to/?http://google.de [nonactive]


Alfjan

This is the try via subs.php

array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link" target="_blank">',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (strpos($data, \'https://anonym.to/?http://\') !== 0 && strpos($data, \'https://anonym.to/?https://\') !== 0)
$data = \'https://anonym.to/?http://\' . $data;
'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),


Alfjan

@bryangreene

I'm not sure, but your answer does not fix my problem.

First link is as it was postet on my forum.
hxxp:google.com [nonactive]

I like to automaticly change that to this.

hxxp:anonym.to/?google.com [nonactive]

By the leadig h t t p s://anonym.to?

QuoteThe advantages of anonymizing your external links with hxxp:anonym.to [nonactive] Webmasters can use this tool to prevent their site from appearing in the server logs of referred pages as referrer.
The operators of the referred pages cannot see where their visitors come from any more.Using the referrer removal service is quite easy:
hxxp:anonym.to/?http://www.gulli.com/ [nonactive] produces an anonymous link to hxxp:gulli.com [nonactive] which prevents the original site from appearing as a referrer in the logfiles of the referred page.

Aleksi "Lex" Kilpinen

Perhaps if you take a look at how this mod is done, you might get a few good pointers - It may even work as is ( though it is old, and originally made for 2.0 RC1 ) but can't promise it will.
https://custom.simplemachines.org/mods/index.php?mod=894
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: