PHP and SPAMBOTS

andehlu

this modern love
Hi there,
Does anyone know if spambots are able to read PHP files? I have built a small mail app for our co. that holds all the emails in an external PHP file,
Id just like to know if the bots can read it. I have a feeling it may be a server setting...anyone?
Thanks
 
You can block certain bots with a robots.txt file I believe. But I'm also under the impression that bots will retrieve the HTML code that the PHP code generates just like a user would rather than seeing the actual PHP code. I may be wrong in regards to SPAM, but that's how Google's bots work.
 
As long as you have your server configured to always parse php files (I don't know why you wouldn't), the server should parse the file before sending the data to client. If you do not output (ie. echo, print_r, etc) the contents of the array, the spambots would just get a file that basically only has <html> and </html>.
 
Back
Top