Portable barriers such as this one wouldn't stop a determined small dog.  it isn't heavy or sturdy enough.  However, the visible barrier is enough to keep most dogs from trying.  So far, mine haven't challenged it!