1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

いまさらガラケーのユーザーエジェントに偽装してサイトのリンク切れをチェックするツール

Posted at

一応、Android,iPhoneもできるよ!

ということで、そもそもユーザーエージェントを偽装してリンク切れチェックを行うツールが見当たらないので作ってみました。
本当はWEBサービスとして公開したかったけど、それはcomming soonで。

使い方

使い方 : ./link_check.php [URL] [User agent]
[user agent] s: Android / a: iPhone / i: Docomo FP / e: AU FP / y: SoftBank FP";

指定されたURLの外部ドメインは再帰的には辿らない
一度チェックしたURLはチェックしない
指定された深さ以下はチェックしない
チェックした結果を各ページ毎に存在するリンク切れURLのリストという形でメールする
チェックした結果は、スクリプトの実行ディレクトリに以下のファイル名で保存される

link_check_[user agent].txt

例

./link_check.php http://www.yahoo.co.jp a

お役にたてば。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?