Hiding invitation URL to users

  • Thread starter Thread starter Android Central Question
  • Start date Start date
A

Android Central Question

WhatsApp provides an invitation link to let others join one's group. You just send them the link and when they click on it... they'll enter (providing they were not kicked out already).

I have this school community with several groups (for the different classes). Student's on each course can join its specific group (if they meet 3-4 conditions). The backend used to create a temporal link (one-shot) for each group they might join in. When they clicked on any of them, the link was 'translated' to the current invitation link (on the server side) and performed a file_get_contents to get WhatsApp's content.

The reason to do this was to avoid any other person (a student's friend for example who receives the invitation link) getting in the group. To avoid this, the invitation link was hidden (file_get_contents got the HTML to show the access buttons) and the URL the student could see was a one-shot link. Even if he/she copied this one-shot link it would not work to any of his/her friends because they must be logged in to the community to get the link translated and the current invitation link was never shown.

However, lately, WhatsApp does not accept this anymore and neither file_get_contents nor CURL works. Does anyone have any idea how I can achieve this?
 
This is the code I'm trying (PHP)

Code:
			$curl = curl_init();
			curl_setopt($curl, CURLOPT_URL, "https://chat.whatsapp.com/JtdDwleC5B6ApQLGzdZ3c7");
			curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
			curl_setopt($curl, CURLOPT_HEADER, false);
			curl_setopt($curl, CURLOPT_SSLVERSION, 3); // OpenSSL issue
			curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); // Wildcard certificate
			curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
			echo curl_exec($curl)."<br>";
			echo curl_error($curl)."<br>";

The server echos error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure

Any ideas?
 

Trending Posts

Forum statistics

Threads
957,028
Messages
6,971,095
Members
3,163,687
Latest member
Khalequzzaman