Category Archives: security

Blocking web access by country code via htaccess

Some Ukraine and Russian folks don’t know how to behave so I decided to block the whole country. Also they’re not target audience for the targeted web. # .htaccess <IfModule mod_geoip.c> GeoIPEnable On SetEnvIf GEOIP_COUNTRY_CODE UA blk SetEnvIf GEOIP_COUNTRY_CODE RU blk … Continue reading

Posted in security | Tagged , | Leave a comment

Passwordless ssh not working

I was getting the following with ssh -v user@remote_host debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/mike/.ssh/id_rsa debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey,password … Continue reading

Posted in linux, net, security, ssh | Tagged , | Leave a comment

Facebook and Chrome connections revealed via Little Snitch

I decided to make a video showing how many connections are made after starting Chrome And connecting to Facebook When I opened Facebook in Firefox it made a connection to http://cx.atdmt.com which after visiting shows 1x1px GIF image. Wikipedia info … Continue reading

Posted in security, Uncategorized | Tagged , | Leave a comment

Vulnerabilities to consider while coding

I just found these following pages which describe SQL Injection and Cross Site Request Forgery (CSRF) vulnerabilities and how to prevent them in WordPress’s PHP code. http://ottopress.com/2014/better-know-a-vulnerability-cross-site-request-forgery-csrf/ http://ottopress.com/2013/better-know-a-vulnerability-sql-injection/

Posted in php, security, wordpress | Tagged , , | Leave a comment