Author |
Topic |
leatherlips
Senior Member
USA
1838 Posts |
Posted - 02 March 2009 : 20:24:37
|
Looking at the source code when the page is in the browser the number gifs are still being shown. For example, this is what you see in the source code:
<img src="images/9.gif" border="0" alt="PicCode">
<img src="images/4.gif" border="0" alt="PicCode">
<img src="images/4.gif" border="0" alt="PicCode">
<img src="images/1.gif" border="0" alt="PicCode">
<img src="images/6.gif" border="0" alt="PicCode">
<img src="images/9.gif" border="0" alt="PicCode"> Any other ideas?
Also, how can you hide the email address in the source code? For example, if you email a member from their profile page, their email address is not revealed in the source code. |
Mangione Magic Forum - The Music of Chuck Mangione
My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD |
Edited by - leatherlips on 02 March 2009 20:53:43 |
|
|
TastyNutz
Junior Member
USA
251 Posts |
Posted - 02 March 2009 : 22:28:58
|
I recently needed some CAPTCHA code for a non-Snitz contact form, and I ran across this topic. I tried CareFree's code and it works great. But I was also concerned about the image src being visible. So, I tried using the antispam code from the Guestbook mod instead (Sorry Carefree! ).
I put it into your contact.asp if you're interested.
|
PowerQuad Disability Support Forum |
Edited by - TastyNutz on 02 March 2009 22:44:52 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 03 March 2009 : 00:53:37
|
quote: Originally posted by TastyNutz
I recently needed some CAPTCHA code for a non-Snitz contact form, and I ran across this topic. I tried CareFree's code and it works great. But I was also concerned about the image src being visible. So, I tried using the antispam code from the Guestbook mod instead (Sorry Carefree! ).
No problem. I redid it using that form of anti-spam coding and using a drop-down list of admins/mods that doesn't display any email addresses, etc. Change line 47 to modify the length of the code.
|
Edited by - Carefree on 03 March 2009 01:16:26 |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
TastyNutz
Junior Member
USA
251 Posts |
Posted - 03 March 2009 : 09:12:06
|
quote: Originally posted by leatherlips
TastyNutz - yours will not accept the code. After you enter it, it still says it is invalid.
I tested again on my server and it's working. As Carefree pointed out before, be sure your form action has the correct file name. I'm betting that's the problem, since your error message text is different, so it must be using the wrong file (unless you changed the error text).
Got a text file I can see? |
PowerQuad Disability Support Forum |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
TastyNutz
Junior Member
USA
251 Posts |
Posted - 03 March 2009 : 09:30:55
|
quote: Originally posted by Carefree
No problem. I redid it using that form of anti-spam coding ...
That seems the way to go. I left a contact form online with your original code, and I woke up to a dozen automated spam emails.
But my guestbook hasn't been spammed once in the years since adding the anti-spam code. |
PowerQuad Disability Support Forum |
|
|
TastyNutz
Junior Member
USA
251 Posts |
Posted - 03 March 2009 : 09:43:52
|
quote: Originally posted by leatherlips
Now the only thing I need to try to work on is having my email address not show up in the source code.
I never noticed that. The whole purpose of the contact form is to hide the address, but it's been exposed anyway. D'oh! |
PowerQuad Disability Support Forum |
Edited by - TastyNutz on 03 March 2009 09:44:42 |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
texanman
Junior Member
United States
410 Posts |
Posted - 03 March 2009 : 18:46:06
|
Please post your code. I was using a contact us form before as well and was faced with the problem you faced. I had to abandon the idea because of the spams. Thanks all. |
|
|
leatherlips
Senior Member
USA
1838 Posts |
Posted - 03 March 2009 : 19:17:24
|
The way I did it makes it a little hard to post the code for it to work for anyone else. However, I will try to explain a few things I have in my form. First, here is the code[/url] of my contact.asp page in text form. Just copy and paste it and name your file contact.asp.
On my page I am also using a character count script that limits the message length. I have mine set to 500. This can be changed at line 230. For this to work you also must have the corresponding .js file. Just copy this code name it formfieldlimiter.js and add it with your other forum files.
Then add this line in your inc_header.asp page:
It should go below the second instance of this line:
You will then need to go to the Dynamic Drive Email Riddler page and enter your email address. Then click the Output variable only (nothing shown) option. Then finally click the "Encrypt Email" button. You then need to replace my code at lines 144-151 with your code. Notice the format it will need to be changed to in order for it to work with the asp code. Just use mine as a guide.
Then be sure to change line 224 on the contact.asp page to have your own id as generated by the email riddler.
You will also need to have the anti spam images in a subfolder of your forum called images. You can obtain the images from here.
There are also a few lines you'll need to change in order to reflect your own text: Lines 108, 109 and 162.
I think I've mentioned everything. If you have problems, let me know.
Edit: I forgot another thing I did. I did not want the login box at the top of the contact form so I removed it. This is of course optional. If you want to do it as well, then in inc_header.asp look for this line:
not(Instr(Request.ServerVariables("Path_Info"), "faq.asp") > 0) and _ Below it add:
not(Instr(Request.ServerVariables("Path_Info"), "contact.asp") > 0) and _
Edit by leatherlips: Ignore the above. I have compiled all of the information and changes into a MOD called the Contact Page MOD. You can find it here. |
Mangione Magic Forum - The Music of Chuck Mangione
My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD |
Edited by - leatherlips on 10 March 2009 18:41:59 |
|
|
TastyNutz
Junior Member
USA
251 Posts |
Posted - 03 March 2009 : 20:57:50
|
Or... you can use the file below. I reworked it to remove the admin email from the source code. Much easier.
*Note... if you change the file name, make the corresponding changes at lines 139 and 190.
|
PowerQuad Disability Support Forum |
|
|
leatherlips
Senior Member
USA
1838 Posts |
Posted - 04 March 2009 : 12:04:53
|
TastyNutz's version is better at hiding the email address in the source compared to what I tried to do. Much easier than what I did above. Here is the version of his that I am using now. It is layed out slightly differently and the error message has been changed a bit. Also, mine is using the character count. If you want to use that then you'll need the js script code - see below. If you don't want that, then you can just delete lines 204-212.
Once again, thanks Carefree and TastyNutz for all your work!
Copy this code below and name it formfieldlimiter.js and upload it to your forums directory if you want to use the character count feature.
Then add this line in your inc_header.asp page:
It should go below the second instance of this line:
|
Mangione Magic Forum - The Music of Chuck Mangione
My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD |
Edited by - leatherlips on 04 March 2009 14:26:51 |
|
|
TastyNutz
Junior Member
USA
251 Posts |
Posted - 04 March 2009 : 15:34:48
|
You're welcome, but this still isn't perfect. I received one spam over night and one this afternoon, which were probably manual. At least I'm hoping it was manual, and not a bot which has somehow defeated this code.
After the first spam, I included a SUB to filter the message for keywords and redirect the spammer before the email sends. The second spam had none of the keywords and got through. So, I added more keywords from the email.
Both came from different IPs but the same Russian email address, which is in forum spam databases. Before I ban the address, I will wait to see if he keeps hitting me.
Anybody have ideas for evil redirects for these bottom feeders? |
PowerQuad Disability Support Forum |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Topic |
|
|
|