Это посмотрел и проверил. Меня смушает то, что при заходе на http://www.razor-blog.ru/?goto=http://vhg.ru/
не выполняется перенаправление (а оно должно, это альтернативный вариант работы, для блогов с отключенными пермалинками).
У вас точно версия 2.04?
Дело в том, что это какое-то шаманство, и кроме старой версии плагина я могу предположить только две вещи:
1) Конфликт с каким-то другим плагином, перехватывающим обращение к странице-редиректу.
2) Какое-то шаманство, прописанное в .htaccess
Дело в том, что этому i в редиректе просто неоткуда взяться…
Ну допустим, есть 2-а поста… в обоих ссылки на один и тот же сайт… в данной реализации они все будут открыты… ну а если нужно ТОЛЬКО в одном из постов ссылку закрыть ? а во втором оставить… ну и вообще так будет больше места для манёвров :)
1) Всё равно не понял, зачем rel=”"
2) Можно не добавлять сайт в в исключения, и в одном из постов можно отключить обработку, и не будет ссылка маскироваться…
А. Тьфу. Только сейчас понял: вы подумали – лучше сделать, чтобы плагин не обрабатывал ссылки с rel=”" :)
То, что вы сказали, звучало так, что плагин должен добавлять rel=”".
Нет, не буду такого пока делать – какая-то очень надуманная ситуация в качестве примера.
1) Всё равно не понял, зачем rel=”"
2) Можно не добавлять сайт в в исключения, и в одном из постов можно отключить обработку, и не будет ссылка маскироваться…
А. Тьфу. Только сейчас понял: вы подумали – лучше сделать, чтобы плагин не обрабатывал ссылки с rel=”" :)
То, что вы сказали, звучало так, что плагин должен добавлять rel=”".
Нет, не буду такого пока делать – какая-то очень надуманная ситуация в качестве примера.
Ну допустим, есть 2-а поста… в обоих ссылки на один и тот же сайт… в данной реализации они все будут открыты… ну а если нужно ТОЛЬКО в одном из постов ссылку закрыть ? а во втором оставить… ну и вообще так будет больше места для манёвров :)
yes,i’m using php4 and to make this version working i have to delete “public” word from “wp-noexternallinks.php” line 35 and also all “public” words from “wp-noexternallinks-options.php”.the plugin now can be activated,but…after that my blog is down.i can’t access my blog with the plugin activated.after i deactivated the plugin,my blog is up again.
now,i reverse back to 2.05 which is works fine with php4.hope you can fix this soon :)
2.13 works great with php4.thanks for fixing the bugs ;)
one little missed thing is the link to configuration panel in “wp-noexternallinks.php” line 8,it still reffers to “wp-noexternallinks” which should be “wp-noexternallinks-options.php”. CMIIW…
That’s good. I fixed link just now, in 2.13, but I won’t make a new version just for it. Three plugin updates in one day – already too much :)
Thanks for help.
You shouldn´t redirect anyone to any given URL, without at least checking if the refereer was a page of your blog. I´ve seen phishing emails which used somebody else´s redirectors to send the victim to the real download site, this way making the inoccent blog owner part of the process of phishing. I personally don´t like that.
If you also added a click counter, this plugin would be of (even) greater value for me :)
I don’t give a fuck on how somebody uses my redirects :)
I don’t care about users who are stupid enough to not notice another web site url in redirect address.
Also, I use my web site redirect from many different places (for example, from livejournal blog retranslation). Do you want to make a list of “allowed referers”? It’s funny.
Hmm… Click counter… I’ll think about it. I’ll need to create additional MySQL table for clicks data, but I really wanted to make plugin as simple and reliable as possible… May be later.
In Wordpress 2.7.1 with WP No External Links 2.1 I have this error:
Fatal error: Cannot redeclare class wp_noexternallinks in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-noexternallinks/wp-noexternallinks.php on line 34
I have php5 in my server and I’ve tried with 2.12 but I have still the same error.
With 2.05 version, it’s works better. The links are ok but in configuration panel we have this error:
Warning: wp_noexternallinks_init_lang() [function.wp-noexternallinks-init-lang]: open_basedir restriction in effect. File(/lang/lang.inc) is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs:/tmp) in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-noexternallinks/wp-noexternallinks.php on line 270
Oh, damn it, I just noticed that I forgot to upload 2.12 to SVN.
Please, download 2.12 once again (10 minutes after this comment it will be ok) and try.
With 2.05, seems like your inclusion path for language file is wrong. I’ll look through it in the evening.
Warning: main() [function.main]: open_basedir restriction in effect. File(/wp-noexternallinks-options.php) is not within the allowed path(s): (/var/www/vhosts/bidaiatu.com/httpdocs:/tmp) in /var/www/vhosts/bidaiatu.com/httpdocs/wp-content/plugins/wp-noexternallinks/wp-noexternallinks.php on line 43
Warning: main(wp-noexternallinks-options.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/bidaiatu.com/httpdocs/wp-content/plugins/wp-noexternallinks/wp-noexternallinks.php on line 43
Warning: main() [function.include]: Failed opening ‘wp-noexternallinks-options.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/bidaiatu.com/httpdocs/wp-content/plugins/wp-noexternallinks/wp-noexternallinks.php on line 43
Error with language was fixed but the one left was also inclusion error.
There’s something really troublesome with your server include path.
Try the last one, 2.14, it should work for you.
in my web the link looks normal, such as “hxxp://abcdef.com/goto/hxxp://ghjkl.com” but when i click the link, the “hxxp://ghjkl.com” part repeated continuously and cause error.
Наверное вы правы насчет перенаправления. Это уже мания :-). Так и сделаю. Просто логику терзает мысль… ведь два абсолютно одинаковых блога. На одном движке. С одними плагинами. Правда у хостера, не исключено, могли быть расположены на разных серверах. Но посвящать жизнь решению этой проблемы не стоит :-)
Это злобная настройка сервера, которая меняет в адресе запроса двойные слэши на одинарные. Непонятно откуда, она периодически вылезает, всё никак не могу придумать, как бы её корректно обойти…
This is really a useful plugin.
But when I enable it, the links like “mydomain.com/goto/http://google.com” cannot be visited, only display a 403 forbidden page, what can I do to solve it?
Простите, читать все комменты не стал. Но по себе скажу, что все траблы с перенаправлениями, в т.ч. и зацикливание и мегадлинные ссылки, это все от php4. Все решается установкой php5.
Понятно, что PHP4, но непонятно, почему :)
А люди PHP4 используют, и часто просто не могут перейти на пятый.
Изменение в 2.15 – стал в адресе редиректа, если нету “://”, то заменять “:/” на “://” – только такое лобовое решение помогает против серверов со странной настройкой, которые заменяют любое количество повторяющихся бэкслешей на один.
Hi,Jehy!
It doesn’t work on all my links including the version 2.15,-.- All the masked links such as http://zuoshen.com/goto/http://google.com/ cannot be visited… BTW, my wordpress directory is different from the homepage, I installed wordpress on “mydomain.com/wordpress”…
There’s a very strange setup on your server – even simply passing variable like “http://zuoshen.com/?goto=http://ya.ru” gives 403 errors. Seems like there’s something too harsh with your server security configuration.
I didn’t see any problems like this before.
Do you have something extra in your .htaccess?
Please write me if you know something concerning your server setup, or if you manage to solve the problem. It’s really interesting.
4 April at 3:36 pm
Захожу на:
http://www.razor-blog.ru/goto/http://vhg.ru/
Выдает адрес
http://www.razor-blog.ru/goto/http://vhg.ru/i
и
Неверное перенаправление на странице
Firefox определил, что сервер перенаправляет запрос на этот адрес таким образом, что он никогда не завершится.
6 April at 4:02 pm
Это посмотрел и проверил. Меня смушает то, что при заходе на
http://www.razor-blog.ru/?goto=http://vhg.ru/
не выполняется перенаправление (а оно должно, это альтернативный вариант работы, для блогов с отключенными пермалинками).
У вас точно версия 2.04?
Дело в том, что это какое-то шаманство, и кроме старой версии плагина я могу предположить только две вещи:
1) Конфликт с каким-то другим плагином, перехватывающим обращение к странице-редиректу.
2) Какое-то шаманство, прописанное в .htaccess
Дело в том, что этому i в редиректе просто неоткуда взяться…
6 April at 7:24 pm
дык плагин я уже выключил, тем пользуюсь, он поудобнее… точнее пофункциональнее, жаль его автор забросил..
шаманства в .htaccess нет) только то, что туда нашаманис ВП… Ну ЧПУ
9 April at 11:05 am
Отличный плагин ! Спасибо ! Вот только “Адреса-исключения” – может лучше rel=”" для ссылки добавлять для которых НЕ производить маскировку ?
9 April at 11:09 am
Мм. А зачем? :)
9 April at 11:38 am
Ну допустим, есть 2-а поста… в обоих ссылки на один и тот же сайт… в данной реализации они все будут открыты… ну а если нужно ТОЛЬКО в одном из постов ссылку закрыть ? а во втором оставить… ну и вообще так будет больше места для манёвров :)
9 April at 11:35 pm
1) Всё равно не понял, зачем rel=”"
2) Можно не добавлять сайт в в исключения, и в одном из постов можно отключить обработку, и не будет ссылка маскироваться…
А. Тьфу. Только сейчас понял: вы подумали – лучше сделать, чтобы плагин не обрабатывал ссылки с rel=”" :)
То, что вы сказали, звучало так, что плагин должен добавлять rel=”".
Нет, не буду такого пока делать – какая-то очень надуманная ситуация в качестве примера.
10 April at 11:56 am
Согласен :) я промаргал возможность отключения маскировки для любого поста :)
9 April at 11:35 pm
1) Всё равно не понял, зачем rel=”"
2) Можно не добавлять сайт в в исключения, и в одном из постов можно отключить обработку, и не будет ссылка маскироваться…
А. Тьфу. Только сейчас понял: вы подумали – лучше сделать, чтобы плагин не обрабатывал ссылки с rel=”" :)
То, что вы сказали, звучало так, что плагин должен добавлять rel=”".
Нет, не буду такого пока делать – какая-то очень надуманная ситуация в качестве примера.
9 April at 11:38 am
Ну допустим, есть 2-а поста… в обоих ссылки на один и тот же сайт… в данной реализации они все будут открыты… ну а если нужно ТОЛЬКО в одном из постов ссылку закрыть ? а во втором оставить… ну и вообще так будет больше места для манёвров :)
9 April at 11:09 am
Мм. А зачем? :)
9 April at 11:05 am
Отличный плагин ! Спасибо ! Вот только “Адреса-исключения” – может лучше rel=”" для ссылки добавлять для которых НЕ производить маскировку ?
15 April at 5:25 am
i got an error after update from 2.05 to 2.10:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in ****/wp-noexternallinks.php on line 35
can you fix this?
15 April at 5:39 am
That is strange, there shouldn’t be any errors?
Are you using PHP4?
I had completely rewritten the plugin, and there may be some unexpected issues with php4…
Try removing “public” word from line 35, and tell me the results, please.
18 April at 7:40 am
yes,i’m using php4 and to make this version working i have to delete “public” word from “wp-noexternallinks.php” line 35 and also all “public” words from “wp-noexternallinks-options.php”.the plugin now can be activated,but…after that my blog is down.i can’t access my blog with the plugin activated.after i deactivated the plugin,my blog is up again.
now,i reverse back to 2.05 which is works fine with php4.hope you can fix this soon :)
18 April at 2:29 pm
I installed php4 on localhost and fixed plugin.
Hope it will help you.
18 April at 8:58 pm
2.13 works great with php4.thanks for fixing the bugs ;)
one little missed thing is the link to configuration panel in “wp-noexternallinks.php” line 8,it still reffers to “wp-noexternallinks” which should be “wp-noexternallinks-options.php”. CMIIW…
best regards from me in Indonesia… :)
18 April at 9:58 pm
That’s good. I fixed link just now, in 2.13, but I won’t make a new version just for it. Three plugin updates in one day – already too much :)
Thanks for help.
17 April at 8:41 pm
You shouldn´t redirect anyone to any given URL, without at least checking if the refereer was a page of your blog. I´ve seen phishing emails which used somebody else´s redirectors to send the victim to the real download site, this way making the inoccent blog owner part of the process of phishing. I personally don´t like that.
If you also added a click counter, this plugin would be of (even) greater value for me :)
Thank you for the plugin!
18 April at 1:43 pm
I don’t give a fuck on how somebody uses my redirects :)
I don’t care about users who are stupid enough to not notice another web site url in redirect address.
Also, I use my web site redirect from many different places (for example, from livejournal blog retranslation). Do you want to make a list of “allowed referers”? It’s funny.
Hmm… Click counter… I’ll think about it. I’ll need to create additional MySQL table for clicks data, but I really wanted to make plugin as simple and reliable as possible… May be later.
18 April at 12:05 pm
In Wordpress 2.7.1 with WP No External Links 2.1 I have this error:
Fatal error: Cannot redeclare class wp_noexternallinks in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-noexternallinks/wp-noexternallinks.php on line 34
Why this error?
Can you help us?
Thanks a lot
18 April at 2:28 pm
Do you have PHP4 installed?
Please try plugin version 2.12 – I fixed some incompatibilities there.
If no luck – use version 2.05.
18 April at 4:47 pm
Thanks for your reply Jehy.
I have php5 in my server and I’ve tried with 2.12 but I have still the same error.
With 2.05 version, it’s works better. The links are ok but in configuration panel we have this error:
Warning: wp_noexternallinks_init_lang() [function.wp-noexternallinks-init-lang]: open_basedir restriction in effect. File(/lang/lang.inc) is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs:/tmp) in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-noexternallinks/wp-noexternallinks.php on line 270
Do you have another idea?
Thanks again
18 April at 4:58 pm
Oh, damn it, I just noticed that I forgot to upload 2.12 to SVN.
Please, download 2.12 once again (10 minutes after this comment it will be ok) and try.
With 2.05, seems like your inclusion path for language file is wrong. I’ll look through it in the evening.
18 April at 5:28 pm
Even version 2.13…
If 2.13 is no good, download 2.05 again – I corrected language inclusion there, and it should not cause any errors.
18 April at 6:07 pm
I’ve tried 2.13 and I have the same error:
Warning: main() [function.main]: open_basedir restriction in effect. File(/wp-noexternallinks-options.php) is not within the allowed path(s): (/var/www/vhosts/bidaiatu.com/httpdocs:/tmp) in /var/www/vhosts/bidaiatu.com/httpdocs/wp-content/plugins/wp-noexternallinks/wp-noexternallinks.php on line 43
Warning: main(wp-noexternallinks-options.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/bidaiatu.com/httpdocs/wp-content/plugins/wp-noexternallinks/wp-noexternallinks.php on line 43
Warning: main() [function.include]: Failed opening ‘wp-noexternallinks-options.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/bidaiatu.com/httpdocs/wp-content/plugins/wp-noexternallinks/wp-noexternallinks.php on line 43
I’ll tried 2.05 again
Thanks
18 April at 6:09 pm
The domain is in Basque language but I’ve tried with spanish one too.
18 April at 6:17 pm
Ok, 2.05 seems ok now. There isn’t any error.
18 April at 10:13 pm
Error with language was fixed but the one left was also inclusion error.
There’s something really troublesome with your server include path.
Try the last one, 2.14, it should work for you.
18 April at 11:26 pm
Eyyy!! it’s works!!! Fantastic.
There isn’t any error, and I think that all it works.
Thanks a lot Jehy
19 April at 1:15 am
i am getting this error message with v. 2.14
see:
http://1000buddhas.com/error.png
v. 2.05 of plugin works great
php5
great idea for plugin!
cheers!
19 April at 1:45 am
Please, download 2.14 again. It would be strange if what I changed is the reason for error… But who knows…
22 April at 5:33 am
its me again with another problem… (sorry…) :D
apparently some problem still exist. i found another error while using >2.05, the screenshot looks like this :
http://img511.imageshack.us/img511/744/errorj.png
in my web the link looks normal, such as “hxxp://abcdef.com/goto/hxxp://ghjkl.com” but when i click the link, the “hxxp://ghjkl.com” part repeated continuously and cause error.
28 April at 6:33 pm
Наверное вы правы насчет перенаправления. Это уже мания :-). Так и сделаю. Просто логику терзает мысль… ведь два абсолютно одинаковых блога. На одном движке. С одними плагинами. Правда у хостера, не исключено, могли быть расположены на разных серверах. Но посвящать жизнь решению этой проблемы не стоит :-)
1 May at 1:43 pm
при редиректе типа http://pokrovskii.com/goto/http://jehy.ru
редиректит на http://pokrovskii.com/jehy.ru
актуально для всех 2+ версий.
19 May at 8:33 pm
Это злобная настройка сервера, которая меняет в адресе запроса двойные слэши на одинарные. Непонятно откуда, она периодически вылезает, всё никак не могу придумать, как бы её корректно обойти…
0.71 должна работать корректно в этом случае.
20 May at 1:13 am
0.71 работает. Не забудьте упомянуть в блоге, если пофиксится этот баг — сразу обновлюсь.
20 May at 11:22 pm
Попробуй версию 2.15 сегодняшнюю – я там поставил заплатку, которая должна обходить эту кривулину в настройках сервера.
1 May at 1:45 pm
не ожидал что преобразуется в линки. Сейчас у меня стоит 0.7.1 версия.
1 May at 4:38 pm
Hi,Jehy!
This is really a useful plugin.
But when I enable it, the links like “mydomain.com/goto/http://google.com” cannot be visited, only display a 403 forbidden page, what can I do to solve it?
Thanks
19 May at 8:36 pm
Wow, you are the first one to get this bug. Congrats XD
Please write your blog address with buggy links example, or wrong relocation url.
21 May at 12:57 am
German (de_DE) translation file:
http://rafb.net/p/5Oopxt73.html
21 May at 1:07 am
Thanks! Do you know who is the author?
21 May at 1:35 am
I am. :)
(Well, I hope I got it… I replaced “masking” by “obfuscating”, as “masking” has some quite weird meanings in German..)
21 May at 1:46 am
If you have a blog, I can put a link to it near the translation :)
Yeah, “obfuscating” is a correct word. Possibly, “masking” is wrong in English too – my native language is Russian ^_^’
21 May at 1:49 am
Mine is German, so I’m not quite sure about /everything/ either…
http://tuxproject.de/blog – however I’ll doubt you’d understand anything there ^_^ …
Thanks! ;)
21 May at 11:30 am
Простите, читать все комменты не стал. Но по себе скажу, что все траблы с перенаправлениями, в т.ч. и зацикливание и мегадлинные ссылки, это все от php4. Все решается установкой php5.
P.S. А что в новой версии поменялось?
21 May at 12:58 pm
Понятно, что PHP4, но непонятно, почему :)
А люди PHP4 используют, и часто просто не могут перейти на пятый.
Изменение в 2.15 – стал в адресе редиректа, если нету “://”, то заменять “:/” на “://” – только такое лобовое решение помогает против серверов со странной настройкой, которые заменяют любое количество повторяющихся бэкслешей на один.
21 May at 12:24 pm
Hi,Jehy!
It doesn’t work on all my links including the version 2.15,-.- All the masked links such as http://zuoshen.com/goto/http://google.com/ cannot be visited… BTW, my wordpress directory is different from the homepage, I installed wordpress on “mydomain.com/wordpress”…
21 May at 1:17 pm
There’s a very strange setup on your server – even simply passing variable like “http://zuoshen.com/?goto=http://ya.ru” gives 403 errors. Seems like there’s something too harsh with your server security configuration.
I didn’t see any problems like this before.
Do you have something extra in your .htaccess?
Please write me if you know something concerning your server setup, or if you manage to solve the problem. It’s really interesting.
22 May at 7:09 pm
Hi,Jehy.
I’ve sent you my .htaccess files by the contact form :)
23 May at 12:36 am
Yeah, I looked at it… It’s absolutely normal.
But there’s still smth wrong with your server.
Please try using version 0.71 – it uses file redirect instead of .htaccess…
Tell me if you figure smth out.
25 May at 7:52 am
Hi,Jehy! Version 0.071 works fine,finally… Thank you for your kind help :)