Wiki

Articles tagged with "security", sorted by ratingX
Displaying 11-20 of 26 result(s).

How to hide /frontend/web in url addresses on apache

Created 8 months ago by raminiousHow-tos12 comments – viewed 36,981 times – ( +12 ) – version 2.0
There is an issue on Yii2 to redirecting / urls to /frontend/web. In other words we need a way to hidden /frontend/web from addresses. We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

Logout CSRF Protection

Created 4 years ago by Rodrigo CoelhoTutorials1 comment – viewed 15,077 times – ( +10 ) – version 1.1
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.

Secure password hashing with bCrypt

Created 3 years ago by waitforitHow-tos3 comments – viewed 20,252 times – ( +9 ) – version 1.1
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

More security in your applications with Yii and PHPIDS

Created 4 years ago by Rafael GarciaHow-tos1 comment – viewed 12,417 times – ( +8 ) – version 1.1
PHPIDS is a well known project that can be found in php-ids.org.
tags: phpids, security

Force a User to Change Their Password (ChangePasswordFilter)

Created 3 years ago by waterloomattTutorials2 comments – viewed 15,484 times – ( +16 / -2 ) – version 1.1
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

Checking for "expired" sessions/logins on the client side

Created about a year ago by le_topHow-tos0 comments – viewed 16,278 times – ( +5 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

Show captcha after <N> unsuccessfull attempts

Created 2 years ago by zitterHow-tos7 comments – viewed 16,422 times – ( +14 / -4 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

Make the authentication more securely

Created 11 months ago by Kostas Apazidis (KonApaz)Tutorials1 comment – viewed 3,517 times – ( +3 ) – version 1.1
Suppose a hacker has an account of your website He could set the PHPSESSID to empty After of that He login in your system The PHPSESSID remains blank and user has already logged with this session

Using phpseclib with Yii

Created 2 years ago by nkdHow-tos8 comments – viewed 7,483 times – ( +2 ) – version 1.1
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security

Enhance security of cookie-based login

Created 9 months ago by darkheirHow-tos0 comments – viewed 4,365 times – ( +2 ) – version 1.1
Enhance security of cookie-based login