Browsed by
Category: Best Practice

Python Sqlite3 With Database(name) Do: …

Python Sqlite3 With Database(name) Do: …

This is a small wrapper that allows to use pythons with statement on a sqlite3 database:

Use it like this:

Denied Files With NginX

Denied Files With NginX

Add a rule like this to prevend the download of files like /_xyz or /.zyx:

Secure /wp-admin/ With NginX

Secure /wp-admin/ With NginX

If your nginx config has a php rule like this:

Then you need to add a rule like that before ? the rule above:

in order for the login file being processed by php and not be downloaded…