Thursday, October 9, 2014

If url includes Dot/Period, will cause 404 error for ASP.NET routing

Need to change web.config setting at:

<system.webServer>

<modules runAllManagedModulesForAllRequests="true">

<remove name="FormsAuthenticationModule" />

</modules>

</system.webServer>

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

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

HOW TO DOUBLE YOUR APP DOWNLOADS WITH KEYWORD OPTIMIZATION

http://blog.discofingers.com/blog/2014/10/8/how-to-double-your-downloads-with-keywords-optimization