Welcome to Geeklog Tuesday, December 12 2017 @ 08:18 pm EST


Status: offline

THEMike

Forum User
Moderator
Registered: 25/07/2003
Posts: 141
Location:Sheffield, UK
HTTP_Referer 1.3 is now available from my site, and awaiting approval at geeklog.net.

This adds:

Pagination support for search phrase/search word screens (I trim latest referers constantly, so I didn't paginate it)
SpamX Support for blocking HTTP_REFERER spam.

To upgrade, just replace functions.inc.

Status: offline

tomw

Forum User
Full Member
Registered: 12/08/2002
Posts: 300
SpamX examining all the referers could drastically slow down everything especially if you have the ip of site module loaded. Then it would do a reverse lookup on every referer to your site which would be several times per page. I briefly played with a similiar idea and it brought my sites to a crawl. I hope you made SpamX usage configurable.

I finally resorted to a script that examins the referer lists twice a day and adds them to the ban list.

Status: offline

THEMike

Forum User
Moderator
Registered: 25/07/2003
Posts: 141
Location:Sheffield, UK
http_referer's that:

1) Aren't the site
2) Aren't a search engine
and
3) Aren't any of the anon proxies I've come accross

Are then filtered for spam.

I have noticed no decrease in performance on my site, and I've been running this version of the code since 1.3.11 was released. But then, my sites aren't /that/ busy, and I don't use the ip filters.

What HTTP referer logging to you use? Own, mine or other?

Status: offline

tomw

Forum User
Full Member
Registered: 12/08/2002
Posts: 300
I use my stats plugin. But my tests were trying to make an automatic ban. The gambler spammer uses a very small number of IPs for all his websites. I tried checking for that IP based on the HTTP_REFERER variable for automatic adding to my ban list. It wasn't worth the speed hit. It would require some kind of caching since each page request results in several http requests all of which have to be checked.

So I just made a script that periodically (twice a day) looks at the referer list and only makes one lookup per referer and if it matches the list it deletes them from the list and adds it to the ban list.

Status: offline

kemal

Forum User
Regular Poster
Registered: 05/04/2005
Posts: 103
Location:Turkey
hi,

i installed http referer 1.3,
but my referers block giving this error :
Error in PHP Block. Function, phpblock_referers, does not exist.

what can i do??

_KEMAL_

Status: offline

THEMike

Forum User
Moderator
Registered: 25/07/2003
Posts: 141
Location:Sheffield, UK
There are three block functions defined, that is not one of them. Your choices are:

phpblock_http_referer_list, lists the last $_CONF['http_referer_block_limit'] http_referers.

phpblock_http_referer_list_phrases lists the last $_CONF['http_referer_block_limit'] search phrases used to find your site.

phpblock_http_referer_list_words lists the last $_CONF['http_referer_block_limit'] search words used to find your site.

Status: offline

kemal

Forum User
Regular Poster
Registered: 05/04/2005
Posts: 103
Location:Turkey
thanks.

it's runnig but i dont wanna more than 10 links and i dont wanna same links listing..
and i wanna hide some links.. How can i optimize?
_KEMAL_

Status: offline

kemal

Forum User
Regular Poster
Registered: 05/04/2005
Posts: 103
Location:Turkey
and and and i wanna hide http:// part..
_KEMAL_

Status: offline

THEMike

Forum User
Moderator
Registered: 25/07/2003
Posts: 141
Location:Sheffield, UK
you can limit the number by changing the value in the variable I noted.

As to not the same and not show http://, you'll have to write your own phpblock function I'm afraid.

All times are EST. The time is now 08:18 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content