If the user agent you want to allow is: Lynx/2.8.8dev.12
Then you need these rules in the htaccess directory that you want to restrict:
RewriteEngine On RewriteCond %{HTTP_USER_AGENT} !Lynx/2\.8\.8dev\.12 [NC] RewriteRule ^ - [F,L]
Every other user agent is banned from 403.
source share