Skip to content Skip to sidebar Skip to footer
Showing posts with the label Security

Using Ast And Whitelists To Make Python's Eval() Safe?

OK. I know the experts have spoken and you should not ever use python's eval() on untrusted dat… Read more Using Ast And Whitelists To Make Python's Eval() Safe?

How Do I Reject A Request Prematurely With Django?

I'm getting a lot of spambot requests (requests with referrer as a spam site). How do I reject … Read more How Do I Reject A Request Prematurely With Django?

How To Get The Authenticated User Name In Python When Fronting It With Iis Http Platformhandler And Using Windows Auth?

HttpPlatformHandler supports forwarding the auth token by enabling the forwardWindowsAuthToken sett… Read more How To Get The Authenticated User Name In Python When Fronting It With Iis Http Platformhandler And Using Windows Auth?

Python Mysql, Is This A Prepared Statement?

I am setting up a mysql app. This is my getUsername method connects using standard mysqldb formatti… Read more Python Mysql, Is This A Prepared Statement?

Python: Convert Telnet Application To Ssh

I write a python telnet client to communicate with a server through telnet. However, many people te… Read more Python: Convert Telnet Application To Ssh

Making User-made Html Templates Safe

I want to allow users to create tiny templates that I then render in Django with a predefined conte… Read more Making User-made Html Templates Safe