4

Is it safe to put e-mail addresses in PHP variables against e-mail collectors?

 2 years ago
source link: https://www.codesd.com/item/is-it-safe-to-put-e-mail-addresses-in-php-variables-against-e-mail-collectors.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Is it safe to put e-mail addresses in PHP variables against e-mail collectors?

advertisements

Is it safe to use either of these lines without having the emails being picked up by email harvesters?

My email: <a href="mailto:<?php echo '[email protected]'; ?>"><?php echo '[email protected]'; ?></a>

or this one with variables

<?php $email = '[email protected]'; ?>
My email: <a href="mailto:<?php echo $email; ?>"><?php echo $email; ?></a>

or does it even matter for as long as it's generated by PHP then it's safe?


Those will provide no protection at all. PHP is run on the server side. It will generate an HTML document and send it to the client. From the perspective of a bot or a user this is exactly the same as if you had just put the email address in a normal HTML document:

My email: <a href="mailto:[email protected]">[email protected]</a>

Related Articles

How to put the table address in a variable

How can I put the address of the array into a variable? char * str1 = "Hello"; int add = 0; Now I want to put the address of the array into add. I know I can print out the address of the array by the following way: printf("Address = %p"

put the user form entered in the php variable and send the mail

I'd like to send the user a copy of the contact form that they submit. I've got this php code: $formproc->AddRecipient('[email protected]'); and this front-end code: <form id='contactsensei' action='<?php echo $formproc->GetSelfScript();

Is it safe to put a jwt in the url as a query parameter of a GET query?

Is it safe to put a jwt (json web token) into the url as a query parameter of a GET request?It can be safe under the following circumstances: the JWT is one-time time usage only the jti and exp claims are present in the token the receiver properly im

how to send a completed form to an e-mail address using PHP?

I am trying to send a filled up form to a particular email address. But I have no Idea about it. I know a little PHP coding and as far I have studied online I found that PHP already have a mail() function. but that also have some problems. although m

attracting the website from the e-mail address in php

How to pull website name from email address in php/mysql. Exploding is too expensive here ,as i have to do it for several thousands data inside db original data [email protected] [email protected] needed data example.com example1.com function getDomai

Question C: If I pass the address of a variable to a function that modifies it, it is guaranteed that the variable will be & ldquo; recharged & rdquo; after the return?

I have a lot of code that used to be similar to this: int num = 15; if(callback) callback(&num); /* this function may or may not change the value of num */ if(num == 15) /* I assumed num did not need to be volatile and is reloaded */ do_something();

How to assign the address of a variable to NULL in C?

I have a question in C, how to assign the address of a variable to NULL? For example: int a; And how to assign the address of variable a to NULL?You got it backwards, you can't change the address of a variable. The compiler places it wherever it feel

How is this main function always loaded at the same address while the variables have a different address most of the time?

I wrote this small program today and I was blown away by the results. Here is the program int main(int argc, char **argv) { int a; printf("\n\tMain is located at: %p and the variable a is located at address: %p",main,&a); return 0; } on my m

How to validate an email address with php?

This question already has an answer here: How to validate an Email in PHP? 5 answers Using a regular expression to validate an email address 74 answers How to validate an email address in PHP 8 answers I started trying to write a php script to valida

Put a parenthesis after the member variable to initialize it?

I have seen people put a parenthesis after the member variable in the initialization list. I wonder why would people do that? For example, I have a STL container in header file: class A{ public: A(); ... private: vector<string> v; } and in source fi

Put the $ _GET parameter in the php variable

Is it possible to take $_GET parameter from the url and put it in php variable without using foreach? If I do: var_dump($_GET); I will get the result: array(1) { ["block_simple_clock"]=> string(0) "" } I need to put that value block

The most portable and reliable way to get the address of the variable in C ++

Using & to get an address of a variable can be problematic if the variable type has overloaded operator&(). For example, _com_ptr_ has operator&() overloaded with a side effect of modifying the object. Now I have a complicated set of templates

How to assign an IP address to a variable in a batch

I have assigned ip address to a variable in the following way. set /A myvar = 10.0.0.1 echo %myvar% but it is giving the result as only 10 not entire ip address.. so can some give the solution for ittry this: set myvar=10.0.0.1 echo %myvar% The /A sw

Changing the address of a variable

Is there a way to set an integer variable at the absolute address 0x67a9 to the value 0xaa55? The compiler is a pure ANSI compiler. How to accomplish this? This is a program related to embedded systems. As in there we can access a specific memory loc

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK