Forum Moderators: martinibuster

Message Too Old, No Replies

.htaccess file & Adsense question

         

super70s

1:20 am on Mar 12, 2011 (gmt 0)

10+ Year Member Top Contributors Of The Month



I have a little free web directory (PHPLinkDirectory 2.1) that I run as one of my side project sites. About a month ago, it started getting abused daily by some jerk in Russia who would submit the same site multiple times. I did some research and found out I could block him by entering his IP address in the .htaccess file like this:

order allow,deny
deny from 00.000.00.00 (his IP which I censored)
allow from all

This seemed to get rid of him, but one side effect (I think) is my Adsense ads suddenly quit displaying on the main page and my default ads from Amazon started displaying instead (although the Adsense ads work as usual on the page where you actually submit your URL to the directory).

My question is, is there anything I can do to this .htaccess file (or any other file for that matter) that will ensure Adsense ads will display on that page as desired?

HuskyPup

3:17 pm on Mar 12, 2011 (gmt 0)



Mine is set thus:

<Limit GET>
order allow,deny
deny from 000.000.000.000
allow from all
</Limit>

I'm not sure why your AdSense would not work, I certainly do not have problems with the above.

super70s

6:30 pm on Mar 12, 2011 (gmt 0)

10+ Year Member Top Contributors Of The Month



I'll see if that helps, thanks. What does "Limit" do anyway, I've never seen that before.

netmeg

9:34 pm on Mar 12, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



(probably should bop over the Apache forum for that)

g1smd

9:43 pm on Mar 12, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The official Apache docs are the best source: [google.com...]