본문 바로가기

[Recoeve.net]

URI rendering test

# URI rendering test Recoeve.net 에서 URI rendering 어떻게 동작하게 할지 test 하려고 만든 문서. ## PH
  • 2015-12-11 : Test it 추가해야 할듯.
## TOC ##[.no-sec-N] Test it URI 입력하면 rendering 된 페이지 쏴주는거 만들어 놓자. ## Instagram 인스타그램은 퍼가는걸 좀 막으려고 ```[.lang-html] <div class="p68" data-reactid=".7.1.0.0.$https=2//igcdn-photos-e-a=1akamaihd=1net/hphotos-ak-xfp1/t51=12885-15/sh0=108/e35/p640x640/12353933_899152200204140_465974688_n=1jpg.0:0.2"></div> ```/ 이런 data-reactid 를 이용하는듯? Console 엔 이게 처리된 html 이 안보이고, jQuery 로 element 를 찾으니까 아래와 같이 뜸. ```[.lang-html] <div class="p68" data-reactid=".7.1.0.0.$https=2//igcdn-photos-e-a=1akamaihd=1net/hphotos-ak-xfp1/t51=12885-15/sh0=108/e35/p640x640/12353933_899152200204140_465974688_n=1jpg.0:0.2"> <img src="https://igcdn-photos-e-a.akamaihd.net/hphotos-ak-xfp1/t51.2885-15/sh0.08/e35/p640x640/12353933_899152200204140_465974688_n.jpg"> </div> ```/ 즉 아래와 같이 image source 를 처리. 오 이거 hash function 까지 잘 짬뽕시키면 자동화 parsing 까지 막을수도 있네??? ```[.lang-python] .7.1.0.0.$https=2//igcdn-photos-e-a=1akamaihd=1net/hphotos-ak-xfp1/t51=12885-15/sh0=108/e35/p640x640/12353933_899152200204140_465974688_n=1jpg.0:0.2 https://igcdn-photos-e-a.akamaihd.net/hphotos-ak-xfp1/t51.2885-15/sh0.08/e35/p640x640/12353933_899152200204140_465974688_n.jpg ```/ hash function 이 javascript 단에도 있어야 해서 해킹이 되긴 하는데..... 어찌 보안수준을 높이지??? 매번 salt 를 다르게 주고, server 단에서 hash 한 값을 user related data 에 저장해놓고, 이 사용자가 hash 해서 요청 보낸건지, session passed check 하고 이 사용자의 hash 값인지 인지하는 식으로? 아무튼 로그인 한 사람만 사진을 볼 수 있도록은 만들 수 있을듯? 이런식이면 Crawler 인지 아닌지도 판단할 수 있겠네? 엄청난 트레픽을 유발하는 유저라면 이런 image 를 안쏴주거나, false 정보를 줘서 엿먹이는 방법도 있을듯. 좋군ㅋ ## 유튜브 (Youtube) 이건 따로 포스팅 할 필요가 없을듯도... 너무 잘 되어 있어서. 하나 주의할건 youtube URI 는 형태가 여러개라는 점 정도? (정리하긴 해야겠네.) ## 다음 + 카카오 ### 다음 TV pot 팟 플레이어에서 Ch. M COUNTDOWN (빙고TV_101) 의 공유하기 버튼을 누르면 다음과 같은 링크들을 줌. ```[.linenums.scrollable] // 이건 Active X 이용해서 팟 플레이어를 여는거 같음. 그래서 IE 에서만 열 수 있는듯? "http://tvpot.daum.net/vingotv064.man.live" // 브라우저로는 live stream 을 송출 안해주는 채널이 많은듯도? 이건 팟 플레이어로 가서 보라고 뜸. "http://live.tvpot.daum.net/vingotv064.man.popup" // 아래는 다른 채널 (채널W 일본 예능 스페셜). 이건 뜸. "http://live.tvpot.daum.net/everyon006.man.popup" // 요걸 iframe 으로 불러들이면 되는듯. // HTML object 도 주던데... 이건 안뜨는데? <object name="PotWeb" width="640" height="480" id="PotWeb" classid="clsid:571CB303-4267-4D92-B45C-9B79ACC18632" codebase="http://get.daum.net/PotPlayer/v2/PotWeb.cab#version=1,2,1,0"><param name="PotSetting" value="vwmode=2"><param name="InstallURL" value="MIIG6QYJKoZIhvcNAQcCoIIG2jCCBtYCAQExDzANBgkqhkiG9w0BAQUFADBCBgkqhkiG9w0BBwGgNQQzaHR0cDovL2dldC5kYXVtLm5ldC9Qb3RQbGF5ZXIvdjIvUG90UGxheWVyU2V0dXAuZXhloIIFADCCBPwwggPkoAMCAQICEFTvj6l54tZEWQqx/Pqmc74wDQYJKoZIhvcNAQEFBQAwgbYxCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybX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VR0jBBgwFoAUl9BrqCZwyKE/lB8ILcQ1m6ShHvIwEQYJYIZIAYb4QgEBBAQDAgQQMBYGCisGAQQBgjcCARsECDAGAQEAAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQA3ToTROvG+czIPBHxJ1+ufSgsIMg8S45w49vaVLRIZWGqG7tVKuPYVUDGa1TqKE2g0LBswKh1+Xd9YapLXfCgh3a/AGniAWGv2O/wa+2+KA3Chhh7FVhC0ovFnw6Blp75uXjSnubVgPdN4MNHQPA6if5YKbd41SsSnX3lUpQqcFZVMIqtBWU9mBumv8aSnpQlAl05u5bx82uA3MNDKyWtKgbSBHCyA+GbHWBwX0cVqfuF2iBPrPbGg4zyJo6/viiLmB+mAhnOc94dhpGgbioTp2sHFUygz5wNdBJ8wi9VIo1QRXQM4JUJ6/RkaR+NY1bKlLR0e7VCYybmwaJIh3qhxMYIBdjCCAXICAQEwgcswgbYxCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNlIGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDkxMDAuBgNVBAMTJ1ZlcmlTaWduIENsYXNzIDMgQ29kZSBTaWduaW5nIDIwMDktMiBDQQIQVO+PqXni1kRZCrH8+qZzvjANBgkqhkiG9w0BAQUFADANBgkqhkiG9w0BAQEFAASBgDTondtSzWdn3XkAghYpehSEdVHeL8Khyn06XibYXFEund2EMr9/K7oXMZme32sQsdo6CfKM+xRyjuUMtIbtL5Ho0CN40Y+WlMCULPswcLp7HDC6CUjtNYlEy85qVI9gXfHTLJzFFFDO8mn1z22JWwsVBRfiQPupKoxUsQ67eG87"><param name="InstallName" value="팟플레이어 V1.5 베타 설치"><param name="DownloadURL" value="MIIG4wYJKoZIhvcNAQcCoIIG1DCCBtACAQExDzANBgkqhkiG9w0BAQUFADA8Bgk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urRkVq2SsCRsBHpm6lSZv+5B3lsGaiPsOBCAxaVbGTxlIMtLiPkjuP69bU/DI+10VU6hEYWIR1Yx1r9yaNM6Zvb0dz7M636WusbiyQc5KXu3YbTwFnx+i03BOulLNZVVvPeowhEGcQ1xeKAa6E9sZb9ZIRdMFmKqyzGBP9"><param name="ShowUI" value="1"><param name="PlayURL" value="liveinfo://Info.do?pd_daumid=vingotv064.man"><param name="UIOption" value="0"><param name="EndURL" value="http://cfs.see.daum.net/flash/potplayer/Notice.swf?livetype=F&pddaumid="><param name="BlockURL" value="http://cfs.see.daum.net/flash/potplayer/Notice.swf?livetype=B&pddaumid="></object> ```/ iframe :: (자동재생은 못 막나?)
다른 형태의 iframe ::
### Kakao tv 다음 동영상들이 tv.kakao.com 으로 넘어가고 있는 중 같음;;; 퍼가기가 제대로 구현이 안되어 있는듯도??? 다음과 같은 영상링크는 ```"http://tv.kakao.com/v/69508350"```/ 아래와 같은 iframe 으로 퍼올 수 있음. vid 가 달라서 이 URI 로 바로 iframe 동영상 못퍼오게 디자인 되었네;;; 네이버 따라가네 ㅡ..ㅡ;;;;; ```[.lang-html] <iframe src="http://vfarm.tv.kakao.com/controller/video/viewer/Video.html?play_loc=kakaotv&autoplay=false&wmode=opaque&vid=v7979r4W4CgMME4WCMLLr3b" frameborder="0"></iframe> ```/
## Naver video 기본적으로 퍼가기 누르면 다음과 같은 세가지 text 를 줌.
네이버 동영상 퍼가기
```[.linenums.scrollable.lang-html] // URL 주소 http://tvcast.naver.com/v/449906 // 소스 코드 (자동재생 on) <iframe src='http://serviceapi.rmcnmv.naver.com/flash/outKeyPlayer.nhn?vid=64768AD08EDD0866B9769FF5BD4458C559E7&outKey=V12282a322ad9da247e6f1b6811099841c5e05a47dbb3cb50fcf51b6811099841c5e0&controlBarMovable=true&jsCallable=true&isAutoPlay=true&skinName=tvcast_white' frameborder='no' scrolling='no' marginwidth='0' marginheight='0' WIDTH='544' HEIGHT='306'></iframe> // Object code (자동재생 off) <object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='544' height='306' id='rmcPlayer_08889' align='middle'> <param name='allowScriptAccess' value='always'/> <param name='quality' value='high'/> <param name='movie' value='http://serviceapi.rmcnmv.naver.com/flash/getCommonPlayer.nhn'/> <param name='wmode' value='window'/> <param name='allowFullScreen' value='true'/> <param name='bgcolor' value='#000000'/> <param name='FlashVars' value='vid=64768AD08EDD0866B9769FF5BD4458C559E7&outKey=V1268a3222ad9da247e6f1b6811099841c5e005fd12a6b8d386aa1b6811099841c5e0&wmode=transparent&jsCallable=false&isAutoPlay=false&controlBarMovable=true&api=http://serviceapi.rmcnmv.naver.com/flash&skinName=tvcast_white&isResizableCoverImage=true&beginTime=0&__flashID=rmcPlayer_08889&skinURL=http://serviceapi.rmcnmv.naver.com/flash/getCommonPlayerSkin.nhn?name=tvcast_white&'> <embed src='http://serviceapi.rmcnmv.naver.com/flash/getCommonPlayer.nhn' width='544' height='306' quality='high' wmode='window' id='rmcPlayer_rmcPlayer_7690' name='rmcPlayer_rmcPlayer_7690' FlashVars='vid=64768AD08EDD0866B9769FF5BD4458C559E7&outKey=V1268a3222ad9da247e6f1b6811099841c5e005fd12a6b8d386aa1b6811099841c5e0&wmode=transparent&jsCallable=false&isAutoPlay=false&controlBarMovable=true&api=http://serviceapi.rmcnmv.naver.com/flash&skinName=tvcast_white&isResizableCoverImage=true&beginTime=0&__flashID=rmcPlayer_08889&skinURL=http://serviceapi.rmcnmv.naver.com/flash/getCommonPlayerSkin.nhn?name=tvcast_white&' bgColor='#000000' align='middle' allowScriptAccess='always' allowFullScreen='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'/> </object> ```/ Parameter 에서 isAutoPlay=true 로 되어 있어서 자동재생이 됨. 이걸 없애거나 false 로 만들어서 자동재생을 막읍시다. 그런데 네이버 동영상은 browser width 바꾸면 responsible 하게 바뀌지 않음;;; 그지같군ㅋ.
## tudou.com 중국 사이트. 중국어를 몰라서 잘 못퍼오겄지만;;; 링크 ```"http://www.tudou.com/listplay/RWVXb7n2dq8/WvwhGs3IQ6o.html"```/ 에서 주는 공유 방법들은 ``` http://www.tudou.com/listplay/RWVXb7n2dq8/WvwhGs3IQ6o.html?resourceId=0_06_02_99 <embed src="http://www.tudou.com/l/RWVXb7n2dq8/&iid=235629331&resourceId=0_05_02_99/v.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="opaque" width="480" height="400"></embed> http://www.tudou.com/l/RWVXb7n2dq8/&iid=235629331&resourceId=0_04_02_99/v.swf ```/ 그런데 안먹히네??? 먹히는군. 그런데 resourceId 가 왜 다 다를까???
##[.hiden] iMBC 보이는 라디오 보라 퍼가기 누르면 다음과 같은 링크를 주거나 ```"http://vodmall.imbc.com/player/player2014/popupPlayer.html?broID=1000664106005100000&itemID=1028853&isPopup=Y&isUIHidden=N&isBroadcast=Y"```/ 아래와 같은 iframe 을 줌. ```[.lang-html] <iframe src='http://vodmall.imbc.com/player/player2014/popupPlayer.html?broID=1000664106005100000&itemID=1028853&isPopup=Y&isUIHidden=N&isBroadcast=Y' scrolling='no' frameborder='0' allowTransparency='true'></iframe> ```/ 자동재생 끄는건 isBroadcast=N 으로 하면 될라나? 안되네;;; 뭘로 꺼야 하지?
## RRA
  1. Refer 할게 있나?