Results 1 to 6 of 6

Thread: Make PHP cloaking

  1. #1
    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 .

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    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).

  3. #3
    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"].

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    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.

    <? 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
    )
    >

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    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).

    <? 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
    )
    >

  6. #6
    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.

Similar Threads

  1. Replies: 2
    Last Post: 27-02-2012, 03:56 PM
  2. Trouble with the cloaking ability in Crysis 2
    By Hafizz in forum Video Games
    Replies: 4
    Last Post: 19-02-2011, 07:33 PM
  3. How to make an OS
    By Lohitaksha in forum Operating Systems
    Replies: 6
    Last Post: 17-07-2010, 12:22 AM
  4. How to make .r01
    By deval4u in forum Windows Software
    Replies: 3
    Last Post: 30-07-2009, 01:24 PM
  5. How to make make an ajax call using JSF components
    By Lalit5 in forum Software Development
    Replies: 2
    Last Post: 11-02-2009, 06:24 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,155,565.66460 seconds with 16 queries