Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Spambot Email Protector:
Spambot Questions

 

 


AussieT
User

Oct 9, 2008, 12:33 AM

Post #1 of 17 (57297 views)
Shortcut
Spambot Questions Can't Post

Will this work with online forms? Or will it only work for visible email addresses?


Will it work with this test page?: http://www.findmyinn.com/listman/listings/l0769.html


Do I need to rename all my .html pages?


Or can I use the code below in the .htaccess file


AddHandler application/x-httpd-php htm html
AddType application/x-httpd-php htm html


Can it be combined with existing CAPTCHA code?

If I have to rename .html page to .php for it to work will I have to wait for search engines to reindex my site?

Tom


Kenny
User


Oct 9, 2008, 7:41 AM

Post #2 of 17 (57262 views)
Shortcut
Re: [AussieT] Spambot Questions [In reply to] Can't Post

Will this work with online forms?

Yes - your email address in the code (tmjensub@swi.....) will be scrambled.


Do I need to rename all my .html pages?

When I tested your solution of adding handlers to your .htaccess file, it worked! I haven't done extensive testing on it, but it did what it was supposed to do on one page.

View the page source of http://www.flakeybiscuits.com/test.html and you'll see the email is scrambled.

Can it be combined with existing CAPTCHA code?

Yes


If I have to rename .html page to .php for it to work will I have to wait for search engines to reindex my site?

The program will work whether search engines have indexed your site or not. However, they will need to re-index your site for their listings.

I would recommend using the paid version of http://www.xml-sitemaps.com/ to generate sitemaps for all of your sites. This program will re-submit your new index to the major search engines.


Hope thats helps! SEP is great program and very simple to implement.

Kenny


AussieT
User

Oct 9, 2008, 6:55 PM

Post #3 of 17 (57178 views)
Shortcut
Re: [sagentic] Spambot Questions [In reply to] Can't Post

Thank you for your reply Ken

I have a couple of other points I would like clarified before purchasing. My comments are in Red



Will this work with online forms?

Yes - your email address in the code (tmjensub@swi.....) will be scrambled. Super


Do I need to rename all my .html pages?

When I tested your solution of adding handlers to your .htaccess file, it worked! I haven't done extensive testing on it, but it did what it was supposed to do on one page. Excellent, I hope it will work equall well with all the listings once I put the code in the main template page and republish all listings

View the page source of
http://www.flakeybiscuits.com/test.html and you'll see the email is scrambled. This show an error page when I click on the last link

Can it be combined with existing CAPTCHA code?

Yes Great!


If I have to rename .html page to .php for it to work will I have to wait for search engines to reindex my site?

The program will work whether search engines have indexed your site or not. However, they will need to re-index your site for their listings. I asume it will not be necessay to rename the page if it work with the htacess handlers.

I would recommend using the paid version of
http://www.xml-sitemaps.com/ to generate sitemaps for all of your sites. This program will re-submit your new index to the major search engines. Will look into this.


Hope thats helps! SEP is great program and very simple to implement.


I hope so. What is the installation cost if I need it?

Kenny



Kenny
User


Oct 9, 2008, 7:04 PM

Post #4 of 17 (57175 views)
Shortcut
Re: [AussieT] Spambot Questions [In reply to] Can't Post

That link that shows the error only works in Firefox - IE doesn't like it I guess. For IE, just right-click on the page and select "View Source"

Software installation costs $25.00, but there isn't really any software to install. Upload two files and place a code snippet on all your pages.

You should definitely get it. And if you break it, Dave will fix it :) - I have already put it through some rigorous testing, only broke it once (had a conflict with Google Analytics) but Dave fixed it.


(This post was edited by sagentic on Oct 9, 2008, 9:30 PM)


AussieT
User

Oct 10, 2008, 12:46 AM

Post #5 of 17 (57131 views)
Shortcut
Re: [sagentic] Spambot Questions [In reply to] Can't Post

I cannot get it to work on my test link above

I have uploaded the 2 spambot email protector files and tested it using the test page - all ok

I then got the tag and inserted into my test page: http://www.findmyinn.com/listman/listings/l0769.html (just after my <HTML> tag) hope this is correct.

I then added the code in my .htaccess file

AddHandler application/x-httpd-php htm html
AddType application/x-httpd-php htm html

But the page comes up with an error message "page cannot be found"

So I replaced the .htaccess code with an alternative

AddHandler application/x-httpd-php5 htm html
AddType application/x-httpd-php5 htm html

Not the page load OK but the email is still easily seen in the source code.

---

Can anyone help me solve this. I know the installation file says the page must be php to allow the script to run but I understood from the above reply to my questions that it worked OK in html pages if the handler code was added to the .htaccess code. I have other PHP script that work fine using this method.

Please help


Kenny
User


Oct 10, 2008, 6:25 AM

Post #6 of 17 (57086 views)
Shortcut
Re: [AussieT] Spambot Questions [In reply to] Can't Post

OK - Dave will have to look into this one. You broke it.

I tested your page code on two different sites - one as .html with mods to the .htaccess file and one as a .php without the mods to the .htaccess file.

Something else in your code is conflicting with this code.

Note - this is after moving the statement above the <html> tag where it should be.

Sorry I can't be of more help at this point, but you will get taken care of.

Kenny


(This post was edited by sagentic on Oct 10, 2008, 6:33 AM)


Dave
Staff / Moderator


Oct 10, 2008, 2:25 PM

Post #7 of 17 (57043 views)
Shortcut
Re: [AussieT] Spambot Questions [In reply to] Can't Post

Hi Tom,

Thanks for reporting that. We weren't previously encoding emails in tags unless they were mailto's. I've added encoding for:

- non-mailto emails in tags such as:
<input type="hidden" name="email" value="user@host.com" /> (and other tags too)

- mailto emails in tags that have subjects such as:
mailto:user@host.com?subject=Hello

If you click on the download link you received in your email you will be able to download the latest version. If you just replace the .php file it should encode emails that you have in tags that aren't mailtos.

Hope that helps, let me know if you need anything else.

Dave Edis - Senior Developer
interactivetools.com
 


AussieT
User

Oct 10, 2008, 2:58 PM

Post #8 of 17 (57037 views)
Shortcut
Re: [Dave] Spambot Questions [In reply to] Can't Post

Thanks Dave and Kenny



Will download new version and give it a try and report back later


AussieT
User

Oct 10, 2008, 4:26 PM

Post #9 of 17 (57024 views)
Shortcut
Re: [AussieT] Spambot Questions [In reply to] Can't Post

Well I tried the new version but I still get a 500 error msg.

keep in mind that I am trying to keep my page extensions as .html

So I am using the handler code in my .htaccess file. I have tred 2 versions of code to achieve this. The code (above) is code I use on another site but with the same hosting company to parse php code on my html pages and it works perfectly.

There is other code in my .htaccess file but I am not sure what it does.I think there must be a conflict somewhere.

When I enter the handler code NONE of the detail listing page display properly they all come with a 500 error. Even though I have only entered the spambot code on the sample http://www.findmyinn.com/listman/listings/l0769.html page. Hence the reason for believing there is a conflict with the handler code

Here is a copy of the other code in the my htaccesss file:


# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
EDITED OUT REST


i tried putting the handler code above and below the code but the result was the same.

Any suggestions?


(This post was edited by AussieT on Oct 10, 2008, 9:48 PM)


Donna
Staff / Moderator


Oct 10, 2008, 4:57 PM

Post #10 of 17 (57019 views)
Shortcut
Re: [AussieT] Spambot Questions [In reply to] Can't Post

Hi Aussie,

First thing I would try is to make a brand new .htaccess with JUST the html -> php code on it (maybe in a new directory, so it doesn't interfere with your existing code) and see if you can get it to work there.

If that works... then you can start adding in your other .htaccess code and see where it stops working.

One other thing you might want to try is checking with your hosting provider to see if they allow you to parse PHP in an HTML page with htaccess code -- most will, but it's possible for your hosting provider to deny that ability. Check with them if it still doesn't work.

I hope this helps. :)

Donna

--
support@interactivetools.com


Kenny
User


Oct 10, 2008, 11:16 PM

Post #11 of 17 (56975 views)
Shortcut
Re: [Donna] Spambot Questions [In reply to] Can't Post

Aussie

Here's my .htaccess code I used on the sample I posted earlier.

Code
# -FrontPage- 

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName flakeybiscuits.com
AuthUserFile /home/flakey/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/flakey/public_html/_vti_pvt/service.grp

AddHandler application/x-httpd-php htm html
AddType application/x-httpd-php htm html


I'm not sure where the conflict lies, but it works on my sample page as an html file. I'd like to get this figured out!

As a test, I took your source code of that page and made a duplicate on my server (i hope you don't mind, I'll take it down soon). When I view the source code, SEP works like it is supposed to. http://www.flakeybiscuits.com/findmyinncom_test.html This is using the .htaccess code above which is very similar to yours.

My guess is that Donna may have it right when she says your host may be disallowing the handlers to be changed. We have our own servers, so I don't have those problems.

One of the other things that leads me to believe that your files are not being parsed as PHP is that I can see <?php include_once "/home/fin1057/public_html/spambot-email-protector.php" ?> I should not be able to see that if it were a php file or being parsed as a php file.

Check with your host and let us know.

Kenny


(This post was edited by sagentic on Oct 10, 2008, 11:18 PM)


AussieT
User

Oct 11, 2008, 4:17 AM

Post #12 of 17 (56949 views)
Shortcut
Re: [sagentic] Spambot Questions [In reply to] Can't Post

OK

Thanks Ken and Donna

I can see that it is working on your test page, and no I don't mind. I want to get this sorted ASAP

I have teste about 6 variations my end and none of them work so I will contact my hosting company on Monday morning and ask them about it. I did not think it was a problem with my hosting company originally because as mentioned above I have another site hosted with them also and I use the same handler code to parse php on this site and it works fine. But perhaps they are on different servers or something, Anyway a quick phone call MOnday moring should sort that out.

Will let you know how I get on

Tom


Dave
Staff / Moderator


Oct 11, 2008, 10:05 AM

Post #13 of 17 (56909 views)
Shortcut
Re: [AussieT] Spambot Questions [In reply to] Can't Post

Tom,

Also, if your PHP files are set to 777 permissions try setting them to 755. Some hosts don't allow writable php files to run.

Dave Edis - Senior Developer
interactivetools.com
 


AussieT
User

Oct 13, 2008, 11:21 PM

Post #14 of 17 (56582 views)
Shortcut
Re: [Dave] Spambot Questions [In reply to] Can't Post


Quote
Also, if your PHP files are set to 777 permissions try setting them to 755. Some hosts don't allow writable php files to run.

Dave Edis - Senior Developer
interactivetools.com




Dave

When you say check the permission of my PHP files, which files do you mean? The htacess file? The spambot-email-protector.php file or others?


Dave
Staff / Moderator


Oct 13, 2008, 11:46 PM

Post #15 of 17 (56577 views)
Shortcut
Re: [AussieT] Spambot Questions [In reply to] Can't Post

The others, the files that are giving you errors. I'd start with /listman/listings/l0769.html. Try making a copy of it called /listman/listings/l0769.php and see if that runs. If not try changing the permissions on the file and/or folder.

I can take a look directly if you like. You can email me at dave@interactivetools.com

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com
 


AussieT
User

Oct 14, 2008, 1:52 AM

Post #16 of 17 (56533 views)
Shortcut
Re: [Dave] Spambot Questions [In reply to] Can't Post

Hi Dave

I changed the permissions on the htaccess and th spambot.. file to 755 and then the test page worked... until...

I then entered the php code into the publish_listinh.html template and republished the listings and then I got tht 500 errors again when I go to a details page

Will send you an email now

Tom


Dave
Staff / Moderator


Oct 15, 2008, 5:07 PM

Post #17 of 17 (56441 views)
Shortcut
Re: [Dave] Spambot Questions [In reply to] Can't Post

Just a follow up on this thread for anyone who was following along.

We were able to get it to work by making sure the permissions on the php file AND the folder it was in were 755.

Some web servers won't run PHP or CGI programs if the file or the directory the file is in is writable.

Dave Edis - Senior Developer
interactivetools.com