Googlebot indexing imgPath url
-
Hi,
Happily using this excellent datepicker extension with my contact form, I started receiving error messages by Google Webmasters Tools about my site blocking the index spider bot thing. Worried, I log in to the account to find it had been trying to access the url https://mytoplevel.dmn/wp-content/plugins/contact-form-7-datepicker/img/beige/ where it met a 401 Unauthorized message. Which is as it should be but… Why was the bot trying this url in the first place? It turns out that it finds it in the following code and apparently thinks it should be indexed even if it is not a link!
DatePicker_date576 = new JsDatePick({ useMode:2, isStripped:false, target:"date-576", limitToToday:"0", cellColorScheme:"beige", dateFormat:"%d-%m-%Y", imgPath:"https://mytoplevel.dmn/wp-content/plugins/contact-form-7-datepicker/img/beige/",
Now for the life of me, why the almighty G would want to do that is beyond me, but as it stands, I am confronted with returning errors about the site blocking access… Very frustrating.
So I was wondering if it would be possible to cloak the url in some way. I changed the responsible PHP to:
$imgpath = explode(':', plugins_url('/img/'.get_option('cellColorScheme').'/', __FILE__), 2); $string .= ' <script type="text/javascript"> jQuery(document).ready(function() { DatePicker_'.$jssafeid.' = new JsDatePick({ useMode:'.get_option('useMode').', isStripped:'.get_option('isStripped').', target:"'.$id.'", limitToToday:"'.get_option('limitToToday').'", cellColorScheme:"'.get_option('cellColorScheme').'", dateFormat:"'.get_option('dateFormat').'", imgPath:"'.$imgpath[0].':" + "'.$imgpath[1].'",
which does break up the url in to two parts
"http:" + "//mytoplevel.dmn/wp-content/plugins/contact-form-7-datepicker/img/beige/"
while not breaking the appearance of the datepicker. Now I’ll have to wait and see if the Google bot is thrown off the scent…https://www.ads-software.com/extend/plugins/contact-form-7-datepicker/
- The topic ‘Googlebot indexing imgPath url’ is closed to new replies.