|
|
|
#1 |
|
Registered User
|
Blocking PSP's from sites
Does anyone know how I can block Sony PSP's from my site. I've noticed from my server logs that I'm getting a lot of hits from them and for obvious reasons I'd like to stop it. Anything I can add to htaccess would be great. Thanks
|
|
|
|
|
|
#2 |
|
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
Join Date: Mar 2006
Posts: 74
|
i think the user-agent for PSPs is "http_x_psp_browser" but you could block any "psp" to be safe. I'm assuming you know how to do that with your .htaccess
|
|
|
|
|
|
#3 |
|
Registered User
|
Actually Sabin, no, I don't know what to add to the htaccess file. the User-Agent string is "Mozilla/4.0 (PSP (PlayStation Portable); 2.00)"
|
|
|
|
|
|
#4 |
|
I'm normally not a praying man, but if you're up there, please save me Superman!
|
I *think* this should do the trick, but I'm not 100% certain as I copy/pasted and modified the code that I grabbed on another site, tho it looks fine and it seems it *should* work.
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_user_agent} http_x_psp_browser
RewriteRule ^$ http://www.google.com
__________________
The tendency is to push it as far as you can -- Fear and Loathing In Las Vegas |
|
|
|
|
|
#5 |
|
Registered User
|
|
|
|
|
|
|
#6 |
|
WHO IS FONZY!?! Don't they teach you anything at school?
|
I wouldn't send the traffic to google though, build a psp page and redirect it there.
__________________
GetBlogTraffic.com | A comprehensive list of blog traffic resources |
|
|
|
|
|
#7 | |
|
The poster formally known as NOCHEXContact
|
Quote:
![]() |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|