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?
Feb 20, 2003, 4:03 PM
Veteran (19537 posts)
Feb 20, 2003, 4:03 PM
Post #3 of 17
Views: 5089
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.
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.
Feb 20, 2003, 6:01 PM
Novice (10 posts)
Feb 20, 2003, 6:01 PM
Post #7 of 17
Views: 5094
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!
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!
Feb 21, 2003, 2:03 AM
Veteran (19537 posts)
Feb 21, 2003, 2:03 AM
Post #8 of 17
Views: 4987
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.
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.
Feb 21, 2003, 6:55 AM
Veteran (19537 posts)
Feb 21, 2003, 6:55 AM
Post #10 of 17
Views: 4992
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
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
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!
Thanks!
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!
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!