首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
HTTP_ACCEPT of Non-Local Images-Referer (403 Forbidden)
Type(Type) 2012/11/2 00:44

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, */*

(2,307 views)
[更多討論] 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體

"HTTP_ACCEPT of Non-Local Images-Referer (403 Forbidden)" 傳統頁面(電腦版)

首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
傳統桌面版 [ 登入/註冊 ]
© Vovo2000.com Mobile Version 小哈手機版 2024