Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 17-03-2009
Member
 
Join Date: Jan 2009
Posts: 29
Make PHP cloaking

hi
i am working on php and i am interested to know something advance that how to make PHP cloaking. what i heard from my friend is cloaking is use to make search engine pages. also give me any sample of that if you have .please tell me whatever you know thank you .
Reply With Quote
  #2  
Old 17-03-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: Make PHP cloaking

It is important to note that the cloaking is a practice frowned upon by the major search engines. His use of abusive / fraudulent can result in the removal of your site from search engines and recorded on a black list .i will advise you not to implement it on your site taking into account the risks involved (the best way to improve your site's visibility on search engines is to produce relevant content and popular).
Reply With Quote
  #3  
Old 17-03-2009
Member
 
Join Date: Dec 2008
Posts: 196
Re: Make PHP cloaking

The detection of the origin of the request is based on the IP address or User-Agent header in http package (note that the technique which uses the IP address is more reliable, but not infallible).

In PHP it is possible to retrieve information from the User Agent via the environment variable $ _SERVER [ "HTTP_USER_AGENT"]. The IP address for its part is available through the variable $ _SERVER [ "REMOTE_ADDR"].
Reply With Quote
  #4  
Old 17-03-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Make PHP cloaking

Example : cloaking based on the USER-AGENT


In the following example, the function strpos () checks the strings to Googlebot. If the request comes from Googlebot a page is generated on the fly, otherwise there is generation of a standard page designed for human users.

Quote:
<? php
$ found = strpos ($ _SERVER [ "HTTP_USER_AGENT"], "Googlebot");
if ($ found! == false) (/ / visitor is Googlebot, submit page cloak
>
<html>
... Page cloak for Googlebot. </ html>
<? php
)
else (/ / visitor is not googlebot, redirect to a standard page>
<html>
... Standard page ...
</ html>
<? php
)
>
Reply With Quote
  #5  
Old 17-03-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Make PHP cloaking

Example : Cloaking on the basis of IP address

In this three-page code will be presented to different visitors (one for Googlebot, one for the robot Inktomi and a third for other users).

Quote:
<? php
$ adresseip = strval ($ _SERVER [ "REMOTE_ADDR"]);
$ google1 = strpos ($ adresseip, "216.239.46");
$ google2 = strpos ($ adresseip, "64.68.8");
$ google3 = strpos ($ adresseip, "66249.");
$ slurp = strpos ($ adresseip, "66196");
if (($ google1! == false) | | ($ google2! == false) | | ($ google3! == false) | | ($ slurp! == false)) (
/ / Visitor is Googlebot and Inktomi, submit page cloak?e
>
<html>
... HTML page cloak?e for Googlebot and Inktomi

</ html>
<? php
)
else (/ / visitor is not Googlebot and Inktomi, to present the "standard"
>
<html>
... HTML page standard ...
</ html>
<? php
)
>
Reply With Quote
  #6  
Old 17-03-2009
Member
 
Join Date: Dec 2008
Posts: 322
Re: Make PHP cloaking

ya i think this is required here User-Agent and IP addresses of search engines.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Make PHP cloaking"
Thread Thread Starter Forum Replies Last Post
?make: *** No rule to make target `menuconfig'. Stop. ?Error message on Gentoo Linux Charu Sharma Operating Systems 2 27-02-2012 03:56 PM
Trouble with the cloaking ability in Crysis 2 Hafizz Video Games 4 19-02-2011 07:33 PM
How to make an OS Lohitaksha Operating Systems 6 17-07-2010 12:22 AM
How to make .r01 deval4u Windows Software 3 30-07-2009 01:24 PM
How to make make an ajax call using JSF components Lalit5 Software Development 2 11-02-2009 06:24 PM


All times are GMT +5.5. The time now is 11:33 PM.