I recently created an addition to Cry About Crypt that allows for decrypted playback of encrypted video media inside temporary memory. In this article I will explain what I did along with the functional source code contained in order to achieve this.
This URL Shortener: http://s-o.link, is built using the web2py framework. I built this web software to easily send tiny links for easy sharing over SMS, for various mobile apps that I build. In particular this mobile app: www.missedmybus.ca.
Rewrite all requests which no longer exist to domain.
I have for some time wanted to find a simple way to force a domain into a single address www.domain or http://domain with web2py using routes.py and nginx. I did a bit of research more than a few times into routes.py and the mapping system seemed a bit confusing and time consuming for me to take my existing routed domains and make the necessary changes. So I began to look at the server configuration and here is what I came up with after a bit of research.
iptables -A INPUT -p tcp --dport 8118 -s 126.96.36.199 -j ACCEPT
iptables -A INPUT -p tcp --dport 8118 -j DROP