리눅스시스템/설치 2014/05/26 13:33
[ Apache ] mod_access_token
mod_access_token 은 일본의 대형IT업체인 livedoor labs 에서 공개한 아파치 모듈입니다.
- http://blog.livedoor.jp/edge_labs/archives/717201.html
mod_access_token 을 사용함으로 웹사이트 상의 그림 이나 각종 파일에 유효기한을 설정해서 유저에게 일시적인 다운로드를 허용하도록 하는 것입니다. 저희 회사 같은 경우에도 중요도에 따라서 클라이언트에게 보내는 문서등에 원타임 패스워드를 발행하거나, 저런식으로 유효기한을 설정하거나, 다운로드 횟수 제한을 걸어두기도 합니다.
아쉽게도 mod_access_token 에는 아직 원타임 패스워드나 다운로드 횟수 제한 등에 관한 구현은 없으며, 단순한 토큰발행으로 유효기한만을 설정할 수 있습니다.
- http://code.google.com/p/modaccesstoken/
- http://modaccesstoken.googlecode.com/files/mod_access_token-0.10.tar.gz
위의 구글코드에서 mod_access_token 설치파일을 받을 수 있습니다. 자세한 건 그 안의 README 파일을 읽어보시면 쉽게 설명되어 있을 겁니다. 그리고 토큰 발행을 위한 방법과, 토큰 발행을 위한 펄 스크립트 코드도 제공되어 있습니다.
제 서버에 설정해놓은 간단한 예제는 아래와 같습니다.
우선 Location 설정을 /access 로 놓고, AccessKey 등을 설정합니다.
그리고 토큰을 발행할 대상 파일은 아래와 같습니다.
http://www.myemy.com/access/whitecatz.txt
위 파일에 접근하면 403 Forbidden, 접근할 권한이 없다고 나옵니다.
그래서 위 파일에 대한 토큰을 발행합니다.
위의 tar.gz 를 해제하면 eg/sign.pl 파일이 있습니다. <URL> + <Access> + <Secret> + <Expire> 를 지정하고, 아래와 같은 URL 을 받았습니다.
http://www.myemy.com/access/whitecatz.txt?Signature=L3D8mlK1b5HU%2BNqk2NUK0KN%2FPx4&AccessKey=bar&Expires=1245103297
그러면 whitecatz 의 정체를 말해주는 파일의 내용을 볼 수 있습니다. 위에 발행된 URL 도 유효기한이 지나면 위처럼 403 Forbidden 이 나오겠죠. mod_access_token 은 이런 식으로 동작합니다. 조금 생각해보면 간단하게 Web App 를 연결해서 각종 업무에 도입할 수 있을 것입니다.
개인적으로는 조금만 더 발전하면 좋겠다라는 생각도 하지만요. 뭐, 물론 Web App 로 mod_access_token 에서 하는 그런 것들이나, 부족한 것들을 구현해낼 수도 있겠죠.
http://zosel.net/trackback/128
from.オークリー サングラス 2015/11/10 05:21
Hi there Dear, are you really visiting this site ::: ZOSEL ::: :: on a regular basis, if so then you will definitely take fastidious knowledge.
from.Ugg Collezione Inverno 2013 2015/11/10 07:21
nike shoes on sale for men
from.Apple watch エルメス 2015/11/14 12:11
この執筆の作品 ::: ZOSEL ::: :: 申し出 のために有利に明確なアイデア、新しい視聴者、実際方法ブログやサイト構築を。
from.Offerte Ugg Australia 2016/02/10 04:14
cheap nike air max china free shipping
from.Oakley Probation Polarized 2016/02/28 10:29
on sale nike running shoes
from.Discount Oakley Sunglasses Online 2016/03/01 12:56
buy nike free
from.Oakley Sunglasses For Men On Sale 2016/03/02 01:41
nike outlet shop online
from.Discount Oakley Batwolf Sunglasses 2016/03/03 07:56
air maxes nike shoes
from.Oakley Vault Vs Store 2016/03/04 09:06
http://blog.koozyt.com/wp-includes/images/media/oakley-sunglasses/Oakley-Army-Discount-vy6e2w.htmlOakley Army Discount
from.natural health blogs 2016/03/07 02:07
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.Oakley Sunglasses Replacement Lenses 2016/03/08 11:23
air max nike trainers
from.Oakley Discount Prices 2016/03/09 06:52
http://lesnaja-poljana.ru/wp-content/oakley-thump-pro/Cheap-Oakley-Offshoot-3c2x1c.htmlCheap Oakley Offshoot
from.10 balance board 2016/03/11 20:09
most of these 10 balance board are great!!!! manged to get these as a birthday present (10/21) and they received through the initial 30 days as good as but when u take these people nearly all the time such as i truly do they may have certainly put on w...
from.Authentic Oakley Sunglasses 2016/03/12 07:13
nike free run shoes 5.0
from.the flash costumes for girls 2019/12/01 01:09
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.spider man ps4 costume 2019/12/04 22:15
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.batman arkham asylum harley quinn 2019/12/06 00:35
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.thor valkyrie cosplay 2019/12/06 05:01
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.scarlet witch captain america civil war costume 2020/01/14 02:42
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.thor original costume 2020/01/16 03:16
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.xx2shy cosplay captain marvel 2020/01/16 12:12
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.wonder woman costume boots 2020/01/16 20:16
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.remy hair extensions 2020/01/17 14:50
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.click through the up coming website page 2020/01/19 07:54
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.mouse click on ladyoutfitselr.iamarrows.com 2020/01/19 09:34
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.spiderman costume 2020/01/21 05:07
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.the flash costume hoodie 2020/01/24 19:28
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.adult spiderman costume 2020/01/25 12:41
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.Revistas Uneb says 2020/01/25 18:42
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.cosmic spider man 2020/01/27 00:10
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.black spiderman costume 2020/01/28 05:04
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.human hair extensions 2020/01/29 23:49
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.how to tell if your prius battery is bad 2020/02/18 13:25
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.how to connect battery desulfator 2020/02/29 22:22
::: ZOSEL ::: :: [ Apache ] mod_access_token
from.www.chipotlefeedback.com 2021/01/18 10:34
::: ZOSEL ::: :: [ Apache ] mod_access_token
111