¡@

Home 

python Programming Glossary: whitelist

Restricting Python's syntax to execute user code safely. Is this a safe approach?

http://stackoverflow.com/questions/10661079/restricting-pythons-syntax-to-execute-user-code-safely-is-this-a-safe-approach

subset of Python is required my current approach is to whitelist allowable syntax by traversing Python's abstract syntax tree... Functions and names get special treatment only explicitly whitelisted functions are allowed and only unused names. import ast allowed_functions..

Sanitising user input using Python

http://stackoverflow.com/questions/16861/sanitising-user-input-using-python

the white list and all tag attributes not on the attribues whitelist so you can't use onclick . It is a modified version of http..

Making user-made HTML templates safe

http://stackoverflow.com/questions/2357750/making-user-made-html-templates-safe

as XSS with a thoroughly audited secure yet permissive whitelist it will also make sure your documents are standards compliant..

Turn a string into a valid filename in Python

http://stackoverflow.com/questions/295135/turn-a-string-into-a-valid-filename-in-python

slug sanitize share improve this question This whitelist approach ie allowing only the chars present in valid_chars will..

Debug Jinja2 in Google App Engine

http://stackoverflow.com/questions/3086091/debug-jinja2-in-google-app-engine

_ctypes and gestalt to the development server's C module whitelist with monkeypatching. To do so put the following snippet at the..

Python HTML sanitizer / scrubber / filter

http://stackoverflow.com/questions/699468/python-html-sanitizer-scrubber-filter

remove any HTML tags from a string that are not found in a whitelist. python html filter sanitizer share improve this question..

Create (sane/safe) filename from any (unsafe) string

http://stackoverflow.com/questions/7406102/create-sane-safe-filename-from-any-unsafe-string

more and more to that list over the time. I could have a whitelist. However I don't really know how to define it. a zA Z0 9 . is..

In Python, How Do You Filter a String Such That Only Characters in Your List Are Returned?

http://stackoverflow.com/questions/870520/in-python-how-do-you-filter-a-string-such-that-only-characters-in-your-list-are

unwanted characters seems problematic and I tend to prefer whitelisting over blacklisting. The .match function does not seem appropriate... Or am I just hitting another for loop there python filter whitelist share improve this question If you are looking for efficiency...