Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Stopping spam

Quote Reply
Stopping spam
I need to block a domain name from be able submit to the database. The domain is http://www.paidresponse.com The problem is that the IP address and email address of the submitter always changes. the only constant is the domain name. When the user enters this domain name in the URL field I need a response page to say it has been blocked. Can I do this? How?
Quote Reply
Re: [clc] Stopping spam In reply to
I'll post a plugin in a moment.
Quote Reply
Re: [clc] Stopping spam In reply to
Here you go. Just install this plugin and then you can click "Edit" next to the installed plugin and you can enter a list of domains to block (one per line).

The domains are treated as regexs so you'll need to escape meta-characters *, ., $, ^, (), [] eg...

http://www\.domain\.com

...that's just to provide greater pattern matching capabilities.

Last edited by:

Paul: Feb 20, 2003, 4:04 PM
Quote Reply
Re: [Paul] Stopping spam In reply to
Hey Paul..Thanks! I'll give it a try.
Quote Reply
Re: [Paul] Stopping spam In reply to
Hey Paul,

How do I install this? Are there instructions somewhere?

Thanks!
Quote Reply
Re: [clc] Stopping spam In reply to
Nevermind...Got it!

Thanks Again!!
Quote Reply
Re: [Paul] Stopping spam In reply to
Another question...The pluging is working great! However, how do I add an additional Domain?
you have stated "enter a list of domains to block (one per line). " but I only have a single text field not a text area. How do I add a domain to an additional line when I cannot drop a blank line. Also, what is user_add_link (PRE)

Thank you for your time and help!


Quote Reply
Re: [clc] Stopping spam In reply to
Hi,

What version of Links SQL are you using?

This is a problem with slightly older versions. They don't have the ability to use a textarea field. I used 2.0.1 to make the plugin and a textarea is displayed for me.

>>
Also, what is user_add_link (PRE)
<<

That is the hook the plugin uses. If you ever want to stop blocking domains but don't want to uninstall the plugin (which would erase the blocked domain list) then you can just untick that box so the hook will deactivate.
Quote Reply
Re: [Paul] Stopping spam In reply to
Paul,

I'm using Links SQL Version: 1.2 dev. Do you know of a workaround? delimited somehow onthe same line?

Thanks for all the info, I appreciate it!
Quote Reply
Re: [clc] Stopping spam In reply to
You mean 2.1?...hmm if so then it should work.

A quick work around would be to locate the following in DomainBlock.pm...

my ($dom) = [ split /\r?\n/, $cfg->{Domain} ];

and change it to:

my ($dom) = [ split /\|/, $cfg->{Domain} ];

Then you can pipe delimit your domains, eg...

http://www\.domain\.com|http://www\.other\.com
Quote Reply
Re: [Paul] Stopping spam In reply to
Excellent! I'll give it a try...

Thanks!
Quote Reply
Re: [clc] Stopping spam In reply to
Hey paul this has been working great. However, it's not stopping sub-domains such as http://10419.paystat.org I've tried different configurations. Am I missing something or does the code need to be modified for sub-domains?

Thanks!
Quote Reply
Re: [clc] Stopping spam In reply to
What exactly did you enter into the box?
Quote Reply
Re: [Paul] Stopping spam In reply to
This works (http://www\.paystat\.org) at stopping the main URL and affiliate sites in sub-directories.

However, they are also using sub-domain affiliate sites such as http://10419.paystat.org
These are some combinations i have tried...
http://\.paystat\.org, http://.paystat\.org,http://paystat\.org ,paystat\.org,http://1\.paystat\.org

Thanks!
Quote Reply
Re: [clc] Stopping spam In reply to
Try

Code:
http://[^\.]+\.paystat\.org

Last edited by:

Paul: Mar 7, 2003, 6:07 AM
Quote Reply
Re: [Paul] Stopping spam In reply to
It Works! I really appreciate the help!
Quote Reply
Re: [clc] Stopping spam In reply to
Paul,

Thanks for the script.

I was wondering if you could make the box where the urls are placed bigger! So, I get a better overview. Also I would like to knoe if I can enter after the first url or have they be seperated by a komma or something.



Regards,

Savage