Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

DNS Masking for p.jwpcdn.com


i create hotlink protect use html referrer.
It's work fine on html5.
But when client browser use not support HTML5 automaticly use flash player, that's got problem.
Because html header sent http://p.jwpcdn.com/6/11/jwplayer.flash.swf as referrer.

7 Community Answers

ad20h4y

Best Answer 

Thank's for your assistance,
I hosted jwplayer at my own domain jwplayer.sinin*onton.com
And edited jwp6-class-plugin.php configuration.


Problem solved, Please Close this QA

View in conversation

Andrew

JW Player Support Agent  
0 rated :

Do you have an example of where this is set up?

ad20h4y

User  
0 rated :

sample access log.
"GET /404/403.mp4 HTTP/1.1" 200 3284064 "http://p.jwpcdn.com/6/11/jwplayer.flash.swf" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0"

server config

location ~ .(mp4)$ {
mp4;
valid_referers none .sininonton.com;
if ($invalid_referer) {
rewrite ^/(.*)$ http://sininonton.com/404/403.mp4;
}
try_files $uri /404.mp4;
limit_traffic_rate rate 256k;
}

ad20h4y

User  
0 rated :

But on html 5 player, sent my site as referer at http header.
this sample log.
[28/Jan/2015:12:32:46 +0700] "GET /West/2009/The.Fourth.Kind.2009.Sininonton.com.mp4 HTTP/1.1" 206 6165741 "http://sininonton.com/the-fourth-kind/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.93 Safari/537.36" "-"

Andrew

JW Player Support Agent  
0 rated :

This is because we play the video via our SWF with the Flash version. In this case, yes the request will be made from our CDN. The actual request for an MP4 in HTML5 is made through the page itself, so this is expected behavior.

If this is a problem, you may be able to self-host the player on your own domain and reference this by reconfiguring your wordpress plugin.

ad20h4y

User  
0 rated :

where i can download required file for hosted player at my own domain? and any reference for reconfigure my wordpress plugin?

ad20h4y

Best Answer  User  
0 rated :

Thank's for your assistance,
I hosted jwplayer at my own domain jwplayer.sinin*onton.com
And edited jwp6-class-plugin.php configuration.


Problem solved, Please Close this QA

Andrew

JW Player Support Agent  
0 rated :

Great! Thanks for letting us know.

This question has received the maximum number of answers.