Restrict access in SQL server
Since your view2 selects from view1 in another database, as it configured now the permissions on view1 will be checked, so if you just do 

DENY SELECT ON [dbo].[ViewName] TO [UserWithoutAccess]


your select from view2 will fail with 


  The SELECT permission was denied on view1, schema dbo, database db1.


What you should do is to enable your databases to cross-db chaining:
Enabling Cross-Database Access in SQL Server

i.e. execute this in both databases:

ALTER DATABASE db1 SET DB_CHAINING ON;  
ALTER DATABASE db2 SET DB_CHAINING ON; 


This way ownership chain will not be broken when you pass to another database and the permissions on view1 will not be checked.

Database owners of db1, db2 should be the same.

More on ownership chaining here: Ownership Chains