Forum Moderators: phranque
I have written some codes, but they don't work
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} .*html$¦.*php$¦.*png$ [NC]
RewriteCond %{HTTP_REFERER} ^$
RewriteCond %{HTTP_USER_AGENT} Linux
RewriteCond %{HTTP_USER_AGENT} Unix [NC,OR]
RewriteRule ^.+ - [F]
So what't wrong with these codes? thanks
RewriteCond %{HTTP_USER_AGENT} Linux¦Unix [NC]
RewriteRule \.(html¦php¦png)$ - [F]
As Wilderness stated, you must replace the broken pipe "¦" characters with solid pipe characters before use; Posting on this forum modifies the pipe characters.
Jim