fix posData

Added log function
New .htaccess to protect log