July 2012

Debian Squeeze apache2 mod_security’s REQBODY_ERROR

Hello, last night i tried to install mod_security on a debian squeeze server, at first i thought that it would be an easy task but i was wrong, it turned out quite tricky to get it running the main reason was that debian has version 2.5.12-1 at its repository which it is not support the […]

Debian Squeeze apache2 mod_security’s REQBODY_ERROR Read More »

Get remote user’s IP address using Flask

This is a simple function to get remote user’s IP address using Flask’s request_object. It is very simple and takes a lot of tweaks, like reading also the X-Forwarded-For field from received header for users who use proxies. dependencies: from flask import request function: def get_ip(): # get creative here! return request.remote_addr

Get remote user’s IP address using Flask Read More »

Whats my ip service

Whats my ip service Read More »

Scroll to Top