⌛Time it takes to read this article: < 1 point最終更新日:2023年4月10日 当サイトのセキュリティ対策の不備により、ブログやコンタクトフォーム等にSPAMロボットから毎日、膨大なSAPM投稿が送信され、攻撃を受けていましたので、本日、その対策を講じました。 SPAM 投稿の大半は、WordPress のプラグン「Akismet」により捕捉されますが、中には、そのガードをすり抜けるSPAM投稿も存在します。 SPAMロボットの投稿か、人間の投稿かの判断は難しい場合があり、Akismetのガードだけに頼る事はできません。 その為、今回の改修では、コメントフォーム、ログインフォーム、コンタクトフォーム、ギャラリー、ニュース、ゲストブック等のコンテンツに、Googleが開発した人間かロボットかを判別する最新のAPI「No CAPTCHA reCAPTCHA」ならびに、「reCAPTCHA」を組み込む事にしました。 対応する WordPress のプラグインは、以下の通りです。 (*マークは、Contact Form 7 が使用) Google Captcha (reCAPTCHA) by BestWebSoft Google No CAPTCHA reCAPTCHA by WisdmLabs * Really Simple CAPTCHA * Contact Form 7 DMSGuestbook
Archives
Recovery from permalink problems
⌛Time it takes to read this article: < 1 point最終更新日:2023年4月10日 パーマリンクとは、WordPress 標準の動的 URL を静的 URL として、再定義するメカニズムです。 たとえば、ブログのURLは、デフォルトでは以下の記述です。 http://www.senris.com/?page_id=14 これをパーマリンクの機構で、以下のような記述に改める事が出来ます。 http://www.senris.com/blog/ この記述の方が分かりやすいし、検索エンジンにも認識し易くなるので、SEOでも有利になるとされています。 この処理は、WordPress により追加された「.htaccess」内の以下のコマンドにて、Apache サーバーの「mod_rewrite」により実行されます。 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress さて、遅きに失し、今頃パーマリンクを設定した影響で一部のDBが壊れてしまいました。 Transposhとの連動にも問題があります。 原因は、プラグイン「Custom Permalinks」との相性問題のようです。 現在、このプラグインを停止させ、DBを復旧中です。(m_m) 因みに、Trashが空にも拘わらず、Custom Permalinks が居ないと、パーマリンクのアドレスの中の余計な枝番「***-2」が取れません。しかし、Custom Permalinks が居ると、Transposh との連動に失敗します。 MySQL の DB に手を加えれば治るかもしれませんが、WordPress が動かなくなる危険性があるので、当面、Custom Permalinks を外し、枝番有りの状態で運用する事にします。 最後にもう一点、TOPページに HTML5 で作られた時計を iframe で貼っていますが、Transposh では表示できないようです。テーマの PHP ヘッダーファイルは、少し手を加えていますが、HTML5対応ではありません。しかし、iframe の中は表示されると思うのですが、良く分かりません。 以上の件で、誰か技術的に詳しい方がいらしたら、サポートをお願いしたいところでございます。 【 2月19日更新 】 P.S. その後、私の実験により判明した事を追記しておきます。 「Transposh」のプラグイン設定「Settings」タブの中の「General Settings」で「Rewrite URLs」のチェックを入れてはいけないようです。この説明を読むと、一見、パーマリンクに対応するようですが、パーマリンク設定にした場合、デフォルトの言語以外のページのリンクが正常に機能しなくなります。よって、システムをパーマリンク設定にする時は、このチェックを外す必要があります。 【 3月6日更新 】 ◆付記 本サイトにおけるパーマリンク形式の選定に関しては、以下の記事を参考にしました。
Modified the supporting languages in Transposh
⌛Time it takes to read this article: 2 point最終更新日:2023年4月10日 これまで、Web翻訳のプラグイン「Transposh」のサポート言語は、46カ国語を設定していましたが、サーバーの負荷を低減するため、この時期、サポートする言語を13カ国語に変更しました。 その内訳は、以下の通りです。 英語、日本語、フランス語、イタリア語、ロシア語、中国語(繁体字、簡体字)、韓国語、ポルトガル語、ドイツ語、スペイン語、タガログ語、タイ語、インドネシア語 この決定の根拠については、添付写真に示した Google のアクセス解析システム「Google Analytics」の解析結果も参考にしています。 [in English] Modified the supporting languages in Transposh This time, I’ve modified the supporting languages in “Transposh that is a plug-in for Web translations” in less than 13th countries to decrease an overhead of server, though it had been set to 46th countries by today. Those contents are as follows: English, Japanese, French, Italian, Russian, Chinese(2 kinds), Korean, Portuguese, German, Spanish, Tagalog, Thai, Indonesian. About an evidence of this decision, I’ve also refered a result of analysis of the “Google Analytics” that is the access analysis system in google shown by appended picture. 因みにですが、このレンタルサーバー(Apache 2.2.27/Unix)の管理システム「cPnanel」で提供されているアクセス解析プログラム「Awstats」を起動し、サーバーレベルでの国別アクセス集計も表示させてみました。対象期間は、2月1日~2月4日です(以下の画像)。何故か、ウクライナからのアクセスが多いのが謎です。単なるクローラー? [in English] Incidentally, I’ve also tried to display an access summary of server level of the countries by launching “Awstats” that is an access analysis program presented… read more "
Adding a plugn
⌛Time it takes to read this article: < 1 point最終更新日:2023年4月10日 本日、WordPressへ3つのプラグイン(Global Translator, Transposh, Biz Calendar)を追加しました。 うち、プラグインの2つは、トランスレータであり、それぞれお互いに長所と短所があるため、双方のトランスレータをインストールすることにしました。 Biz Calendarは、営業日と休日を表示する事が可能な日本のプラグインです。非常にシンプルで使い易いです。 私は、 PHPで書かれたこのプラグインのCSS定義を修正する事で、カレンダーの外観をカスタマイズしました。
Added plug-ins
⌛Time it takes to read this article: < 1 point最終更新日:2023年4月10日 I’ve added three plug-ins (Global Translator, Transposh and Biz Calendar) into this WordPress today. Two in the plug-ins are translators and they have merits and de-merits each other. Thus, I’ve decided to install both translators. Biz Calendar is Japanese plug-in that is possible to display the business days and holidays, it’s so simple and easy to use. I’ve customized an appearance of this calendar by modifying CSS definition in this plug-in written in PHP.
Added plug-ins
⌛Time it takes to read this article: < 1 point最終更新日:2023年4月10日 I’ve added three plug-ins (Global Translator, Transposh and Biz Calendar) into this WordPress today. Two in the plug-ins are translators and they have merits and de-merits each other. Thus, I’ve decided to install both translators. Biz Calendar is Japanese plug-in that is possible to display the business days and holidays, it’s so simple and easy to use. I’ve customized an appearance of this calendar by modifying CSS definition in this plug-in written in PHP.
メンテ完了 (The maintenance has been completed)
⌛Time it takes to read this article: < 1 point最終更新日:2023年4月10日 システムのメンテ作業が完了しました。 ここ数日の間にCGIプログラムのバグを幾つか発見し、修正を加えました。 これにより、取りあえずシステムの不具合は解消されたようです。 System maintenance works have been completed. I’ve found bugs in CGI programs while few days and modified them. So it seems to me that the system troubles are canceled.
メンテ完了 (The maintenance has been completed)
⌛Time it takes to read this article: < 1 point最終更新日:2023年4月10日 システムのメンテ作業が完了しました。 ここ数日の間にCGIプログラムのバグを幾つか発見し、修正を加えました。 これにより、取りあえずシステムの不具合は解消されたようです。 System maintenance works have been completed. I’ve found bugs in CGI programs while few days and modified them. So it seems to me that the system troubles are canceled.
メンテナンス中 (System Maintenance)
⌛Time it takes to read this article: < 1 point最終更新日:2023年4月10日 どうやら、未だCGIプログラム若しくは、サーバーの設定に問題があるようで、TOP画面の本日・昨日のカウンタが正常に表示されませんorz 簡単に治ると踏んでいたんですが、未だ原因が分かりません。 引き続き、原因を調査中です。 The access counters (today & the day before) are not displayed because of system trouble. I guess the causes are server settings or a cgi program. Though investigating about the causes, however I can’t know it, yet.
Server transfer has been completed.
⌛Time it takes to read this article: < 1 point最終更新日:2023年4月10日 The registrar for administering a domain has been transfered last year by me. Then, I was working to transfering from the Web server of senris.com being a host domain for this site in Japan to US in this new year. In result of it, the all works have been completed safely today. In this time for server relocation, I’ve decided to terminate “SENRI’S LOUNGE”, and reborn as the Senri’s portal site today. These contents are created by Senri using WordPress being latest technology. I’ve executed the process leading to Japanese web server currently after modifying DNS information and setting on local server. Maybe all contents will be displayed within several days, because it’ll be propagating between servers and routers by this works. By the way, I’ve also constructed a… read more "



