547909 HTTP Referer String Processing Testing 1 (30 minutes)

Đang Thực Hiện Đã đăng vào Jan 27, 2012 Thanh toán khi bàn giao
Đang Thực Hiện Thanh toán khi bàn giao

The Purpose of This Test Project

===============================

A prgrammer has been asked to use php to implement http referer string detection and processing for http://www.technologyonsale.com. Everytime the webserver receives an http request for a page it checks the http referer string sent by the user's browser. If the server detects that the user is coming from Google, Yahoo or Bing search engine, it is supposed to extract the search query string from the referer string and should present the user with a popup window that allows the user to click on a link that would take him streight to a customized search result page.

The purpose of this 30 minutes test is to send spoofed referer strings to the webserver at [url removed, login to view] to find out if the programmer has implemented these requirements correctly. It is also important to find out what happens to searchers coming to [url removed, login to view] from a Google, Yahoo or Bing search result page. The way to test this is to spoof an http referer string using Firefox "Modif Headers" add-on. These spoofed referer strings are url addresses of search result pages on Google, Yahoo or Bing search engines. Your browser will send these spoofed http referer strings to my webserver when you visit any webpage on technologyonsale.com. This way you will be telling my webserver that you are a user that has been referred to the webserver by a search result page on Google, Yahoo or Bing.

Install Firefox Modify Headers Add-on

======================================

Please install the latest version of the "Modify headers" add-on for Firefox browser. To download it please go to [url removed, login to view]

For instruction about how to use Modify Headers please have a look at [url removed, login to view]

Test Your Firefox Browser

=========================

The purpose of this test is to ensure that your browser is sending the desired referer string as configured in the Firefox "Modify headers" add-on

1) From firefox menu select tools => modify headers => options => always on => ok. If this step does not work for your version of Firfox or "Modify Headers", go to step 2. Otherwise go to step 3

2) From Firefox menu select tools => Add-ons => Modify Headers => Options => Start. You can also start/stop sending spoofed http headers by clicking on the Modify Headers icon located at the bottom left corner of your Firefox browser.

3) On modify headers window select action => modify. On the first box enter "Referer", on the second box enter [url removed, login to view], on the third box enter 'Test Your Fifox Browser' then press the add button.

4) Make sure that the entry you created in step 3 is at the top of all other entries (if there are any) and is enabled (green button) and all the other entries (if there are any) are disabled (red buttons).

5) Enter [url removed, login to view] into the address bar of you Firefox browser and hit enter.

5) The browser will return the page above showing rear bumpers items not dvd players. This because the webserver [url removed, login to view] has detected that the requester was searching google for "rear bumpers". This tells you that you browser is sending the correct referer string to the webserver.

6) On Modify Headers window disable the entry that you created on number 3. Also make sure that all other entries (if any) are disabled.

7) Enter [url removed, login to view] into the address bar of your Firefox browser and hit enter.

8) Now the page should be showing dvd players items. This confirms that the referer string you created in step 3 has been disabled.

If the test of your Firefox browser is successful, leave your browser open and move on to "Referer String Test 1"

Referer String Test 1

===============

1) On modify headers window select action => modify. On the first box enter "Referer", on the second box enter "[url removed, login to view] Veggie Tales&sa=D&sntz=1&usg=AFQjCNEc2kQYGZEyYmWnDNvWEysE_-bBlw" as your referer string, on the third box enter "Referer String Test 1" then press the add button.

2) Make sure that the entry you created in step 1 is at the top of all other entries (if there are any) and is enabled (green button) and all the other entries (if there are any) are disabled (red buttons).

3) To test that your Firefox browser is sending the referer string created in step 1, enter [url removed, login to view] into the address bar of your Firefox browser and hit enter. If everything is ok, the page returned by your Firefox browser should display Veggie Tales items instead of dvd players. Do not go to step 4 unless you get this step right!

4) Enter [url removed, login to view] into the address bar of your Firefox browser and hit enter.

5) You will notice that the browser has been redirected to another page. Please write down the url address of that page.

6) Take screenshot of the page that you saw in step 5. Make sure that the screenshot shows the url address of the page. Upload this screenshot to scriptlance and write down the url address of the uploaded screehshot.

7) On Modify Headers window, select the entry you created in step 1. On the righ hand panel, click on the button that says "Enable/Disable". Make sure that this entry has been disabled (i.e red button)

8) On the project message board start a messgage. Your message will be a report of the test result. The first line of your message should read "Referer String Test 1 Result". Below this line draw a line using (======), the same way I am doing it!. Below this second line, write the rest of your message. The rest of your message should read something like this:

I configured my Firefox browser to send ([url removed, login to view] Veggie Tales&sa=D&sntz=1&usg=AFQjCNEc2kQYGZEyYmWnDNvWEysE_-bBlw) as http referer string and then visited ([url removed, login to view]). The technolgyonsale server redirected my Firefox web browser to <mention the url address you recorded in step 5>. You can view a screenshot of that page at <mention the url address of the screenshot on scriptlance you uploaded in step 6). <mention if you have seen any popup window or not during the test>.

Referer String Test 2

================

In this test you will use your experience from "Referer String Test 1" test to try different referer strings (of your own), using the Firefox Modify Headers window. For the purpose of this test project, a referer string is a url address of a Google, Yahoo or Bing search result page. You MUST try all three search engines. Each referer strings you configure on "Modify Headers" must start with "http://". For each referer string you configure on Forefox "Modify Headers" window in this test, you need to perform step 2, 3, 4 and 5 of the "Referer String Test 1" test. For each referer string you want to add to the "Modify Headers" window, you need to go to [url removed, login to view], [url removed, login to view] or [url removed, login to view] and perform a search (any search). For each search you perform on Google, Yahoo or Bing, you will need to copy the url of of each search result page. Those URLs will be your referer strings.

After trying several referer strings, start a message on this project message board. The first line of your message should read "Referer String Test 2 Result". Below this line draw a line using (======), the same way I am doing it!. Below this second line, write the rest of your message. The rest of your message should read something like this:

I configured my Firefox browser to send a different http referer string each time I requested the ([url removed, login to view]) page. Each referer string was a url address of a search result page on [url removed, login to view], [url removed, login to view] or Bing.com. My conclusion is this: all search traffic to [url removed, login to view] from these three major search engines will be <mention what will happen to visitores referred to [url removed, login to view] site by a search result page on Google, Yahoo or Bing>

Odd Jobs PHP

ID dự án: #2293853

Về dự án

Dự án từ xa Jul 11, 2012 đang mở