“Me denied access” lies all over my log
Recently, I keep getting “Jason denied access” to this and everything else in my log.
I haven’t been denied access to anything. My log is telling lies. I see no problem with how things work other than my logs just going crazy saying I'm denied things where i'm not.
Here are the just some of the lies in my log:
jason/block denied access. (when I went into a block successfully!)
node/29/edit denied access. (When I edited a page successfully!)
jason/path denied access.
jason/logs/event/113 denied access. (When clicking and viewing the log errors successfully!)
jason/user denied access.
I haven’t done anything whatsoever cause this problem, and I don't see anything wrong with how things function.
Is my Drupal dying on me? Is it a glitch, how do I fix this?
What’s going on? I'm puzzled!
Thanks.

are you sure its you ?
are you sure its you ? creating the errors ? and not someone manually trying to enter addresses they don't have access too ? or a spider crawling areas of your site that you can block them from ?
example: robots txt should be used to block crawling of /admin/ and any other area it doesnt make sense to let a bot crawl.
below is a copy of my robots txt that i use on a personal site of mine to keep friendly bots away from area they don't need to be in.
# small robots.txt
# more information about this file can be found at
# #" href="http://www.robotstxt.org/wc/robots.html#" rel=nofollowhttp://www.robotstxt.org/wc/robots.html
# lines beginning with the pund ("#") sign are comments and can be deleted.
# if case your drupal site is in a directory
# lower than your docroot (e.g. /drupal)
# please add this before the /-es below
# to stop a polite robot indexing an exampledir
# add a line like (delte the #'s)
# user-agent: polite-bot
# Disallow: /exampledir/
# a list of known bots can be found at
# #" href="http://www.robotstxt.org/wc/active/html/index.html#" rel=nofollowhttp://www.robotstxt.org/wc/active/html/index.html
# see #" href="http://www.sxw.org.uk/computing/robots/check.html#" rel=nofollowhttp://www.sxw.org.uk/computing/robots/check.html
# for syntax checking
User-agent: *
Crawl-Delay: 10
Disallow: /aggregator/
Disallow: /tracker/
Disallow: /archive/
Disallow: /comment/reply/
Disallow: /node/
Disallow: /node/add/
Disallow: /user/
Disallow: /files/
Disallow: /search/
Disallow: /book/print/
Disallow: /audio/
Disallow: /event/
Disallow: /admin/
I too have robots.txt
I too have robots.txt
But I’m sure it’s me because I tested it out to see if I am the reason and it is, all the time.
For example, I go and view blocks > Configure.
Then I would go to my log to see, then it would say “jason/block denied access”.
Another reason that it is me, is because these log errors are only there when I’m logged in and move around the site. i.e. there is no “access denied” in logs when I am not logged into Drupal. Judging from the time stamps.
It pretty much logs everything I do as "denied access". even “Jason/settings denied access” when I am viewing the “setting”.
Yet I don't see any visible problems, strange.
I don't have an answer.
I don't have an answer. Agreed its strange that you are getting a denied error in watchdog, even though you have access to these pages.
not sure if truncuating the watchdog table will help or not in this case.
Google ads were causing it!
Ok google ads were causing it!
I took off my Google ads, and the error logs problem stopped.
I guess the robots were following me whenever I entered block, edited nodes pages etc... that’s why logs were saying Jason/access denied etc..
This is the robot.txt I use, it’s the standard one recommended by the drupal.org, but it’s obviously not doing its job since I had all those error in my log.
But how do I stop it (or should I stop it?) Is this normal? (anyone with google ads can please confirm?)
I appreciate if anyone can help!
# small robots.txt
# more information about this file can be found at
# http://www.robotstxt.org/wc/robots.html
# lines beginning with the pund ("#") sign are comments and can be deleted.
# if case your drupal site is in a directory
# lower than your docroot (e.g. /drupal)
# please add this before the /-es below
# to stop a polite robot indexing an exampledir
# add a line like (delte the #'s)
# user-agent: polite-bot
# Disallow: /exampledir/
# a list of know bots can be found at
# http://www.robotstxt.org/wc/active/html/index.html
# see http://www.sxw.org.uk/computing/robots/check.html
# for syntax checking
User-agent: *
Crawl-Delay: 10
Disallow: /aggregator
Disallow: /tracker
Disallow: /comment/reply
Disallow: /node/add
Disallow: /user
Disallow: /files
Disallow: /search
Disallow: /book/print
how were these google adds ?
how were these google adds ? added ? using the adsense module ? or by hand ?
Yeah I just added them
Yeah I just added them manually into blocks. Is that a problem?
I added the
Disallow: /admin/to robot.txt, but nothing's changed.that would be it then. you
that would be it then. you have these blocks also showing up on admin pages ?
you should consider using the adsense module to display google addsense adds.
The Disallow: /admin/ hasn't
The problem is the
Disallow: /admin/hasn't made any difference and I still have all these "denied access" errors spamming my log.Even thou i've added the following robot.txt that I searched for on drupal.org?
# robots.txt
#
# This file aims to prevent the crawling and idexing of certain parts of your site by
# webcrawlers and spiders run by sites like Yahoo! and Google. By telling
# these "robots" where not to go on your site, you save bandwidth and server
# resources, and the quality of their crawling and indexing is improved as well.
#
# For more information about the robots.txt standard, see:
# http://www.robotstxt.org/wc/robots.html
#
# To stop a polite robot from indexing an exampledir,
# add an uncommented line (without #), like the following:
#
# user-agent: polite-bot
# Disallow: /exampledir/
# A list of known 'bots can be found at:
# http://www.robotstxt.org/wc/active/html/index.html
#
# See this site for syntax checking:
# http://www.sxw.org.uk/computing/robots/check.html
User-agent: *
Crawl-Delay: 10
# Directories
Disallow: /files/
Disallow: /database/
Disallow: /includes/
Disallow: /misc/
Disallow: /modules/
Disallow: /sites/
Disallow: /themes/
Disallow: /scripts/
Disallow: /updates/
Disallow: /profiles/
# Files
Disallow: /xmlrpc.php
Disallow: /cron.php
Disallow: /update.php
Disallow: /install.php
Disallow: /INSTALL.mysql.txt
Disallow: /INSTALL.pgsql.txt
Disallow: /CHANGELOG.txt
Disallow: /MAINTAINERS.txt
Disallow: /LICENSE.txt
Disallow: /UPGRADE.txt
# Paths (Clean URLs)
Disallow: /admin/
Disallow: /node/add/
Disallow: /search/
Disallow: /comment/reply/
Disallow: /contact
Disallow: /user/register
Disallow: /user/password
Disallow: /logout
# Paths (no clean URLs)
Disallow: /?q=admin/
Disallow: /?q=node/add/
Disallow: /?q=search/
Disallow: /?q=comment/reply/
Disallow: /?q=contact
Disallow: /?q=user/register
Disallow: /?q=user/password
Disallow: /?q=logout
google adsense and google
google adsense and google search bot arent the same things jason. I mentioned the robots.txt file as something to look at.
having the robots.txt file only stops the google search bot from indexing those folders added. Thus you shouldnt find any yoursite.com/admin/ links in google search results. I wanted to you check this originally to insure it wasnt a bot getting by creating the errors. you have learned this isnt the problem. Thus robots.txt isnt an issue and should be removed from the equation.
google adsense is another story. my guess is google adsense is trying to check relative content and its not allowed.
so i ask again, are you running google adds, even in your admin area ? if so, use your visibility control and stop google from displaying in the problem areas, to see if that works around the problem.
Ok thanks for clearing that
Thanks for clearing that up. I thought robot.text was for ads too.
To answer your question. I have placed the ads in my in the left hand block, so naturally where ever you go on the site the block is still on the left, meaning the ads are there too.
I also added add to nodes, so whenever I go to edit a node, I get error spams in my log.
So I guess there is no getting away from these spammy errors, right?
But in your opinion, are they dangerous in any way and should I be worried? I can look past the annoyance of the error spams (so much spam!) in my log, but not if they are causing unforeseen problems?
P.S. What did you mean by visibility control? And how can I do this for ads in nodes too?
you can control what blocks
you can control what blocks show on what parts of the site.
google adsense blocks shouldnt show in the admin area. therefore goto administer -> blocks
click on configure for the adsense block (and other blocks you don't need showing in admin area)
look for this menu Page specific visibility settings
insure Show on every page except the listed pages is radio marked "it seems like it is"
then in the text box blow, exclude the admin area from showing the block using
admin*with the asterikthen save the configuration, next time you go to the admin area, the google block should be gone, but showing everywhere else on your site. this wont affect anything because you don't get recognized for adds shown to you or clicked by you. matter of fact, clicking on your own adds, will force google to flag you.
I'd highly reccomend using the adsense module that drupal.org has in its repo area. adsense errors in edit , i dont think you'll be able to fix, without removinb the code, and using a block in the content area, that you can set the same type of visibility settings to, denying it to be shown on /edit/ type pages.
as far as can they hurt you, not really. but they will force your watchdog table to become heavy. Ignornig them is a bad idea i think. If done properly you won't have these types of issues with them.
What about for ads not in a
What about for ads not in a block, such as in nodes?
Also, I have an ad in the leaderboard, which is not in any blocks. So there is no way I can control that, does that mean I have to live with the log spams?
Would they cause my drupal any problems if I leave it? I don't mind the log spams as long as they are not causing any actual problem to my drupal.
again, you can add blocks in
again, you can add blocks in nodes, using the inline module i believe, as well as insert block. as a few others. already in existance. This would be the proper way to go about adding adds, in a proper manner to your website without hassle. Although they don't really need to be inside the content if you have them along side the content. But the ability is already there to do so, with the modules already mentioned through this thread.
again, they wont cause any problem if you leave them.
as i stated in my previous post
although. I'd venture a guess google wont like it even if drupal has not problem with it. However what you see is not spam, and referring to it as such will get confusing to anyone else reading this thread. you are getting bonified access denied errors using adds that you have placed in the manner in which you placed them.
Spam is something completely different.
I do not know what you mean by you have an add in the leaderboard? what exactly is a leaderboard?
I asssume you mean header. provided you don't have any errors in your logs, where it concerns the header then I'd say no. Doesn't seem like you should have any errors about access bening denied in these areas.
Basically google needs permission to look at certain content in certain areas, so that it can provide relevant adds to the content you have on your site. obviously there is no content in the admin area that is of use to google adsense. thus its getting a access denied message.
Google has a few rules with regards to how many adds you can place and where you can place them also i believe. you may wanna hunker down and understand exactly what you are doing. getting sandboxed by google can be a long term deal if you don't do things the way they want them done. The last thing you want to do is get on googles proverbial bad side and look like an add scammer.