Captcha Integration - How?

Solutions for other advanced phplisters

Re: Captcha Integration - How?

Postby chrison » 10:15pm, Mon 25 Mar, 2013

AlanGeorge wrote:Thanks for highlighting this.... my notes for the install need to be adjusted. As I use the same captcha on my sites contact page the captchacode.php and ttf files are in the folder below lists i.e. in
www.mydomain.com/ and not www.mydomain.com/lists/

Copy the two files there and let me know.... another alternative to this would be to add captchacode.php to the .htaccess file in the lists folder....


Hi, Alan:

Thanks for the quick reply! Adding the files to the .htaccess file didn't change anything, but when I copied the captchacode.php and ttf files to my website's root directory that fixed the problem... THANKS!

Regards,

Chris
chrison
phpList newbie
 
Posts: 2
Joined: 7:51pm, Mon 25 Mar, 2013

Re: Captcha Integration - How?

Postby AlanGeorge » 10:21pm, Mon 25 Mar, 2013

Hi Chris

Thanks for pointing out the error in my notes which I've now corrected....

the .htaccess mod would also have required editing the two entries in index.php that call the catchacode.php file either by removing the ../ or entering a fully qualified URL.

With the first option you can use the captcha elsewhere on your site as necessary...

regards

Alan
AlanGeorge
PL Geek
 
Posts: 97
Joined: 7:14pm, Tue 28 Feb, 2012

Re: Captcha Integration - How?

Postby AlanGeorge » 8:57pm, Tue 20 Aug, 2013

Hi All...... Me again

I've just updated the Captcha Hack to work with v3.0.0 which can be viewed in action at the following address

http://www.alangeorge-photography.com/agp_newsfeed/?p=subscribe&id=1

at present this is working on a default installation of phpList 3.0.0 (now .02) and the instructions and files can be downloaded from the following location. All files added and modified are in the /lists folder

http://www.alangeorge-photography.com/listCode_014.php

This hack modifies numerous files so please backup your database and files before making any modifications.

Regards

Alan
AlanGeorge
PL Geek
 
Posts: 97
Joined: 7:14pm, Tue 28 Feb, 2012

Re: Captcha Integration - How?

Postby Francesco5005 » 8:55am, Tue 24 Sep, 2013

I use your code on 3.0.2 version of phplist and it works fine.

I had the same problem reported by chris and it was necessary to act on .htaccess file in the directory /lists as follows:

DirectoryIndex index.php

<FilesMatch "\.(php|inc)$">
Order allow,deny
deny from all
</FilesMatch>
<FilesMatch "(index.php|dl.php|ut.php|lt.php|download.php|connector.php|captchacode.php|monofont.ttf)$">
Order allow,deny
allow from all
</FilesMatch>

# if you want more than this for attachments, you can increase these values
# but you really, really should consider uploading them somewhere
# and only sending a link in your mails
# bigger than this really doesn't make sense in emails

## these lines are now commented out, to avoid 500 errors, https://mantis.phplist.com/view.php?id=9937
## but you should consider adding them

#php_value upload_max_filesize 3M
#php_value post_max_size 4M
Francesco5005
phpList newbie
 
Posts: 1
Joined: 7:38am, Tue 24 Sep, 2013

Re: Captcha Integration - How?

Postby AlanGeorge » 9:49am, Tue 24 Sep, 2013

Hi Francesco

I've checked the download files and the instructions in the readme.txt file for the v3.0.2 release and step 09. clearly says you have to mod the htaccess file.

However if you've downloaded the version for phpList v2.10.x I have indeed omitted that step from the notes and will correct the instructions.....

Anyway many thanks.

Regards

Alan
AlanGeorge
PL Geek
 
Posts: 97
Joined: 7:14pm, Tue 28 Feb, 2012

Previous

Return to Advanced Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 1 guest