HTTP_ACCEPT of Non-Local Images-Referer (403 Forbidden)
$_SERVER['HTTP_ACCEPT'] may help you to deal with 403 forbidden error handling better.
e.g.
When example.com referer your JPG files (Non-Local-Ref), you could display your "BANNER/LOGO" images.
And, after user click-thru to your site (still a 403 Forbidden case), you could then display corresponding image pages.
HTTP_ACCEPT @ Mozilla Firefox 16
Non-Local-Ref: 代碼:image/png,image/*;q=0.8,*/*;q=0.5
Click-Through: 代碼:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT @ Apple Safari or Google Chrome 22 (Apple WebKit)
Non-Local-Ref: 代碼:*/*
Click-Through: 代碼:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT @ Microsoft MSIE 9
Non-Local-Ref: 代碼:image/png, image/svg+xml, image/*;q=0.8, */*;q=0.5
Click-Through: 代碼:application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, */*
HTTP_ACCEPT @ Microsoft MSIE 8
Non-Local-Ref: 代碼:*/*
Click-Through: 代碼:image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, */*
________________
美術插畫設計案子報價系統 v0.1 Beta
爪哇禾雀
|