revekozu
Junior Member
- Jul 30, 2010
- 133
- 41
First off. No offense to our non English speaking friends. I just can't monetize this traffic and also fear an adsense ban for the site.
The site uses a search parameter at the end of certain urls an gradually it has been flooded with foreign language searches. I don't wan to do country bans by ip. But maybe limiting the unicode charset somehow via htaccess could work.
or here is the start of a different solution using htacess
and this works when that character is in a searched word. I'm tempted to ask how to put more characters from words in my logfiles like that in an array. But surely there is a better way to exclude characters beyond the range 0-127?
(I really suck at figuring out htaccess and always end up begging for help somewhere... but hopefully others learn from my questions)
The site uses a search parameter at the end of certain urls an gradually it has been flooded with foreign language searches. I don't wan to do country bans by ip. But maybe limiting the unicode charset somehow via htaccess could work.
or here is the start of a different solution using htacess
Code:
RewriteEngine On
# Block access when 'à®·à¯' in url
RewriteCond %{REQUEST_URI} .*à®·à¯.* [NC]
RewriteRule ^(.*)$ $1 [F,L]
and this works when that character is in a searched word. I'm tempted to ask how to put more characters from words in my logfiles like that in an array. But surely there is a better way to exclude characters beyond the range 0-127?
(I really suck at figuring out htaccess and always end up begging for help somewhere... but hopefully others learn from my questions)