Advertisement:

Author Topic: How to redirect [url][/url]  (Read 663 times)

Offline Alfjan

  • Newbie
  • *
  • Posts: 9
How to redirect [url][/url]
« on: January 23, 2019, 01:53:26 AM »
Hello,

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

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

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

How can I do this?

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,355
    • GenXcommunity
Re: How to redirect [url][/url]
« Reply #1 on: January 23, 2019, 02:01:30 AM »
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

Offline Alfjan

  • Newbie
  • *
  • Posts: 9
Re: How to redirect [url][/url]
« Reply #2 on: January 23, 2019, 02:18:48 AM »
I think I did not explain too clearly.

I want to automaticly change an outgoing http Adress to
Code: [Select]
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 hxxp:http://anonym.to/?http://google.de [nonactive]


Offline Alfjan

  • Newbie
  • *
  • Posts: 9
Re: How to redirect [url][/url]
« Reply #3 on: January 23, 2019, 02:28:09 AM »
This is the try via subs.php

Code: [Select]
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)',
),

Offline Alfjan

  • Newbie
  • *
  • Posts: 9
Re: How to redirect [url][/url]
« Reply #4 on: January 23, 2019, 03:18:25 AM »
@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?

Quote
The advantages of anonymizing your external links with anonym.to 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 gulli.com which prevents the original site from appearing as a referrer in the logfiles of the referred page.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,161
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: How to redirect [url][/url]
« Reply #5 on: January 28, 2019, 04:57:19 AM »
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
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"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