Need to change web.config setting at:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="FormsAuthenticationModule" />
</modules>
</system.webServer>
Thursday, October 9, 2014
Enable hotlinking on Bayimg
I made a tool to upload image to bayimg and get raw image url right way:
http://bayimghelper.apphb.com/
But Bayimg blocks hotlinking. So write a function to enable it.
For example:
Original Bayimg link:
http://image.bayimg.com/38ba4e167a8f6ee9dc800b604cb0cfc6663bd720.jpg
You can use following to get access this image
http://bayimghelper.apphb.com/i/38ba4e167a8f6ee9dc800b604cb0cfc6663bd720.jpg
The source code is located at:
https://github.com/raysaspnet/bayimghelper
http://bayimghelper.apphb.com/
But Bayimg blocks hotlinking. So write a function to enable it.
For example:
Original Bayimg link:
http://image.bayimg.com/38ba4e167a8f6ee9dc800b604cb0cfc6663bd720.jpg
You can use following to get access this image
http://bayimghelper.apphb.com/i/38ba4e167a8f6ee9dc800b604cb0cfc6663bd720.jpg
The source code is located at:
https://github.com/raysaspnet/bayimghelper
How to prevent image hotlinking in ASP.NET?
In IIS Server by URL rewrite:
http://www.it-notebook.org/iis/article/prevent_hotlinking_url_rewrite.htm
http://www.it-notebook.org/iis/article/prevent_hotlinking_url_rewrite.htm
Subscribe to:
Posts (Atom)