The feature to which you reference can only be implemented in EF Core
Global query filters
Now, there are extensions that allow you to achieve what you raise
Entity Framework Plus
If you analyze the options of this library you will see that it is included
EF + Query Filter Global
And this is compatible with Entity framework 6
The other alternative would be to see working with interceptors
EntityFramework.Filters
as you'll see it is defined when using the library
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
DbInterception.Add(new FilterInterceptor());
}