投稿

12月, 2011の投稿を表示しています

aタグ内aタグをクリックした時のリファラとアクセスログ

hogehoge.com/start.html <html><head></head><body><a href="proxy.html"><a href="referer.cgi">AAAAAA</a></a></body></html> hogehoge.com/proxy.html <html><head></head><body>test</body></html> hogehoge.com/referer.cgi #!/usr/bin/perl print "Content-type: text/html\n"; print "\n"; print "$ENV{'HTTP_REFERER'}"; start.htmlから「AAAAAA」をクリックしてreferer.cgiに飛んでみる。 referer.cgiのブラウザ表示 http://hogehoge.com/start.html httpのヘッダたち Request URL:http://hogehoge.com/referer.cgi Request Method:GET Status Code:200 OK ▼Request Headersview source Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Charset:Shift_JIS,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:ja,en-US;q=0.8,en;q=0.6 Connection:keep-alive Cookie:●●● Host:hogehoge.com Referer:http://hogehoge.com/start.html User-Agent:Mozilla/5.0 (Windows NT 6.0) Ap

OpenXインストール備忘録

OpenX(旧OpenAds(旧phpAdsNew・phpPgAds・Max Media Manager))について。 ちなみに今回はOpenX 2.8.8。 PHPと,MySQLかPostgreSQLが必要。 ▼ダウンロード Ad server solution for publishers, advertisers & networks | OpenX ↑公式 Open source ad serving platform for publishers | OpenX | OpenX ↑普通に行くと登録が必要 Download OpenX Source | OpenX ↑落とす ▼インストール How to install the OpenX ad server | OpenX ↑これ読めばOK OpenX マスターガイド ↑消えてたからinterntarchiveから観る さくらインターネットにOpenAds(phpAdsNew, オープンソースのPHP広告配信ツール)をインストール - ぎじゅっやさん pc.casey.jp » OpenX 2.8.2 – オープンソース広告配信システム 日本語標準対応 Linux サーバー構築 WEB・DBサーバー関連 ~目次 ブログでOpenAdsを使う [バナー広告配信代理店ツールを使いこなす] ざっくり言えば以下のとおり。 放り込む。 unzip ディレクトリ名を,バージョン名消してopenxとかに変えておくと気持ちいい。 ./varと./www/imagesをchmodで777に。 さくらだと制限されてるので 755か705。 http://hogehoge.com/openxとかでアクセス。 言われるがままに設定。 Welcomeページから次のページに行く間に,要件満たしてるかチェックされてるっぽい。 Register with OpenXとか言われるのでOpenXにサインアップ。 これはOpenX Market accountであるらしい。 サーバにいれたOpenXとは関係ない。 ちなみに何故か「 We were unable to reach the OpenX Market account registration service at this time. In order to continue