wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

How to add authentication when sending a message? #189

Closed pokal4u closed 9 years ago

pokal4u commented 9 years ago

Hi,

Is possible to add authentication when sending a message?

Problem is users without login they can send messages from REST CLIENT.

Ex: From rest client users post the data to url : http://www.domain.com?pub=channel.

How could we prevent this?

Thanks Pokal

bastianh commented 9 years ago

You can use nginx functions to restrict access to the url.

http://www.cyberciti.biz/faq/linux-unix-nginx-access-control-howto/