Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Moved to Fixing WordPress from Everything else WordPress.
My question is, can I set up a 301 redirect for wpad.dat to my website root, without negatively affecting the WP site or putting additional executions on the server?
You could but those 404’s are not having a negative effect on your site. Why do the 301? That’s not correct either. That file request can be ignored.
Thanks for the reply Jan, I see your point.
I was concerned that the volume of requests would not only be having an effect on server executions/load, but on SEO. I thought that if I redirected to the main homepage it would be better, but if, as you say, the requests shouldn’t have a negative effect on the site then I will ignore them.
Regards,
Chris
I am having the same problem. I’m seeing lots of wpad.dat 404 and its coming from a known source. However, I had the problem you feared. My server kept crashing from server overload. I am not sure what to do about it.
After some investigation and another event of almost hitting my server limits I’ve found a solution. The requests, according to what I’ve read, tend to be generated because of mis-configured proxy detection on the visiting domain resulting in the attempt to load the wpad.dat file.
I found that adding the following to .htaccess has stopped the requests in their tracks and reduced server executions to a level I would expect for the usual traffic levels.
# BEGIN WPAD Block
RewriteEngine On
RewriteRule ^wpad.dat$ – [forbidden,last]
# END WPAD Block
Thank you. I will try that