|
2007-05-24, 08:17 PM | #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
|
2007-05-25, 12:43 AM | #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
|
2007-05-25, 11:18 PM | #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)"
|
2007-05-26, 10:28 AM | #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 |
2007-05-26, 10:55 AM | #5 |
Registered User
|
Cheers ClickBuster, I'll try it out
|
2007-05-27, 06:36 AM | #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 |
2007-05-29, 08:38 AM | #7 |
The poster formally known as NOCHEXContact
|
Just a thought, if you can redirect them send them to Strictly Broadband UK PSP movies sections
|
|
|