I'm trying to limit the access (by IP) to an url like http://www.site.com/page.php?mode=alfa but to leave the access to http://www.site.com/page.php?mode=beta using .htaccess.
Is it possible?
Sure, but why htaccess? You could just use php to do this...