Forum Moderators: phranque
I would like to be able to block some users from my site. I know the domain they are coming from, and I know they only use Macs and Safari.
Anyone who I would like to be able to view the site from that domain uses PCs.
Is it possible to either in htaccess or using php to write a trap which will catch:
Mac users coming from domain hr.cox.net?
The ip addresses are dynamic
RewriteEngine On
RewriteCond %{REMOTE_HOST} cox\.net$
RewriteCond %{HTTP_USER_AGENT} Safari [NC]
RewriteRule .* - [F]