Wiki articles in category How-tos tagged with "security"

Showing 1-15 of 15 items.

Mais segurança em suas aplicações com Yii e PHPIDS

Created 15 years ago by Rafael Garcia Rafael Garcia, updated 15 years ago by Rafael Garcia Rafael Garcia.

PHPIDS é conhecido projeto que pode ser visto em php-ids.org.

2 1
3 followers
Viewed: 14 471 times
Version: 1.1
Category: How-tos

Enhance security of cookie-based login

Created 11 years ago by darkheir darkheir, updated 11 years ago by darkheir darkheir.

When talking about cookie-base login the Yii guide indicates the following:

2 0
2 followers
Viewed: 19 978 times
Version: 1.1
Category: How-tos

Single PHP entry point with Nginx

Created 10 years ago by MadAnd MadAnd, updated 10 years ago by MadAnd MadAnd.

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 21 568 times
Version: all
Category: How-tos

Using phpseclib with Yii

Created 13 years ago by nkd nkd, updated 13 years ago by nkd nkd.

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...

0 0
6 followers
Viewed: 21 986 times
Version: 1.1
Category: How-tos
Tags: security

More security in your applications with Yii and PHPIDS

Created 15 years ago by Rafael Garcia Rafael Garcia, updated 15 years ago by Gustavo Gustavo.

PHPIDS is a well known project that can be found in php-ids.org.

6 0
14 followers
Viewed: 22 826 times
Version: 1.1
Category: How-tos

ACL and RBAC

Created 13 years ago by zeroByte zeroByte, updated 13 years ago by kevinkorb kevinkorb.

This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obs...

0 0
3 followers
Viewed: 35 112 times
Version: 1.1
Category: How-tos

Show captcha after <N> unsuccessfull attempts

Created 13 years ago by zitter zitter, updated 13 years ago by zitter zitter.

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).

13 4
15 followers
Viewed: 37 749 times
Version: 1.1
Category: How-tos

Secure password hashing with bCrypt

Created 14 years ago by waitforit waitforit, updated 13 years ago by Ivo Pereira Ivo Pereira.

In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

5 0
9 followers
Viewed: 41 012 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by le_top le_top, updated 10 years ago by le_top le_top.

Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

4 0
12 followers
Viewed: 42 656 times
Version: 1.1
Category: How-tos

Authenticating against phpass hashes with Yii

Created 14 years ago by Da:Sourcerer Da:Sourcerer, updated 11 years ago by Da:Sourcerer Da:Sourcerer.
  • iteration_count_log2 controls the number of iterations for key stretching. A setting of 8 means the hash algorithm will be applied 2^8 = 256 times. This setting should be kept between 4 and 31.
  • portable_hashes controls whether portable hashes should be used or not. Portable hashes are salted MD5 hashes prefixed by $P$.
22 0
28 followers
Viewed: 43 475 times
Version: 1.1
Category: How-tos

Simple authorization system

Created 14 years ago by Gustavo Gustavo, updated 12 years ago by Gustavo Gustavo.

How to create a simple (non-RBAC) authorization system

14 0
17 followers
Viewed: 48 671 times
Version: 1.1
Category: How-tos

Moving project code outside of webroot (plus multiple project support)

Created 15 years ago by Steve Friedl Steve Friedl, updated 14 years ago by Steve Friedl Steve Friedl.

Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).

21 1
19 followers
Viewed: 68 776 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by raminious raminious, updated 11 years ago by jim. jim..

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)

11 0
22 followers
Viewed: 133 382 times
Version: 2.0
Category: How-tos

Configuring controller access rules to default-deny

Created 14 years ago by Steve Friedl Steve Friedl, updated 12 years ago by nsanden nsanden.

Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

class CommentController extends CController {
    public function filters()
    {
        return array( 'accessControl' ); // perform access control for CRUD operations
    }

11 0
12 followers
Viewed: 143 067 times
Version: 1.1
Category: How-tos

How to write secure Yii1 applications

Created 14 years ago by François Gannaz François Gannaz, updated 4 years ago by François Gannaz François Gannaz.
  • Validate the user input (see below for details).
  • Protect (escape) your application output according to context (see below for a few output types, mostly HTML and SQL).
  • Test your application in debug mode.
    Set the constant YII_DEBUG to true (by default, it is defined in index.php) and put alongside error_reporting(E_ALL);. Then errors and warnings will stop the execution an...
80 0
114 followers
Viewed: 326 423 times
Version: 1.1
Category: How-tos