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.
Author Archives: techshinobi
URL Rewrite Non Existing Requests [NginX]
Rewrite all requests which no longer exist to domain.
Continue reading
NginX with Web2py: Forcing a url to use a single 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.
Continue reading
Simple IPTables command for reference.
iptables -A INPUT -p tcp --dport 8118 -s 1.2.3.4 -j ACCEPT iptables -A INPUT -p tcp --dport 8118 -j DROP
Actionscript PyCurl and Socks – Final
This part deals mostly with the requesting of videos to load. Currently I have set up a Tor Hidden HTTP Service for adding video files to. I then request those videos through Tor/Privoxy Client which connects using PyCURL/CURL. Videos are dynamically managed by passing the filename into a flashvars parameter from my database table where it requests the file from the Tor Hidden HTTP Service.
Continue reading