• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Access to this file ... why?

DSF

Well-known member
#1
Many spider?/bots? will direct access to this file any day again and again.
Sometimes direct to all other *.js in xenforo.

Can everbody explain me WHY? :(
[Tue Jun 21 09:52:50 2011] [error] [client 150.70.75.30] client denied by server configuration: /var/www/hosts/xxxxxxx.xx/httpdocs/forum/js/jquery/jquery-1.4.4.min.js
 

James

Well-known member
#2
To stop the logs you should create a robots.txt file to prevent indexing of the /js/ folder. As for why they're constantly trying to access it, I have no idea.
 

Mike

XenForo developer
Staff member
#3
It's normal for that to be requested. There are even situations where if you use a CDN for jQuery it can be requested.

What configuration (htaccess/Apache config) have you made to block access to that file/directory?
 

DSF

Well-known member
#4
In this example the IP-Range was denied in the .htaccess. It's a well known Japan-Spammer. ;)
The /js/ Folder are not extra protected. Just default with 644 only.