Welcome Guest ( Log In | Register )

 Forum Rules Aggregators support
 
Reply to this topicStart new topic
> How To Mask Joomla Aggregator Like Mozilla Firefox, how to block Aggregator by user agent
Web Design Seo
post Oct 22 2010, 09:46 AM
Post #1


Web Design Seo
****

Group: Root Admin
Posts: 4,156
Joined: 29-April 09
From: Sofia
Member No.: 1



Rss feeds from some sites not allow aggregator importing - this is blocked by directive in htaccess - by user agent or by IP address. Here is example code for .htaccess how to block by user agent. With this type of code you can block aggregators to read rss feeds in your site.

Joomla Aggregator use simplepie parser to fetch rss feeds. When aggregator fetch rss feed server see user agent. User agent of simplepie parser is simplepie.

To change this and wbesites do not understand that rss feed is readed with simplepie:
Mask simplepie parser like Mozilla Firefox

How to change: Find in file simplepie.inc code:

Код
define('SIMPLEPIE_USERAGENT', SIMPLEPIE_NAME . '/' . SIMPLEPIE_VERSION . ' (Feed Parser; ' . SIMPLEPIE_URL . '; Allow like Gecko) Build/' . SIMPLEPIE_BUILD);


Replace with something like this:
Код
define('SIMPLEPIE_USERAGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; bg; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)');


In this way simplepie parser is masked like Mozilla Firefox.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No New Posts How To Block Bad Bots On My Website .htaccess Code
code for .htaccess
2 Web Design Seo 7,646 17th October 2018 - 06:55 AM
Last post by: Web Design Seo
No new Pinned: Topic has attachmentsJoomla Vulnerable Extensions List
list with new Joomla exploits
20 Web Design Seo 22,530 26th September 2018 - 05:07 AM
Last post by: Web Design Seo
No new Pinned: Topic has attachmentsJoomla Scraper, Grabber For Joomla
Joomla Scraper Can Grab Any Content From Any Website
81 Web Design Seo 85,936 14th September 2018 - 08:35 AM
Last post by: Web Design Seo
No New Posts Pinned: How To Check Aged Domain Names Quality
old domain for sale - check quality first!
3 Web Design Seo 18,019 10th September 2018 - 06:22 AM
Last post by: Web Design Seo
No new Pinned: Joomla Pagination Seo Plugin
SEO plugin for Joomla Pagination that work in all Joomla
61 Web Design Seo 61,511 13th March 2018 - 10:05 AM
Last post by: mxcpz
No New Posts Pinned: Joomla Scraper Going Open Source
No licenses, use scraper on unlimited number of web sites
0 Web Design Seo 5,628 8th March 2017 - 07:40 AM
Last post by: Web Design Seo
No New Posts How To Boost Onpage Seo Of My Website
fast and power way to find the right keywords and to rank it quickly
0 Web Design Seo 9,452 16th January 2017 - 01:47 PM
Last post by: Web Design Seo
No New Posts Pinned: Joomla Ден 2016
Joomla Day 2016
1 Web Design Seo 18,160 31st October 2016 - 10:11 AM
Last post by: Web Design Seo
No New Posts Joomla Post By Email To K2 Extra Fields
1 uglykidjoe 13,083 11th February 2016 - 07:45 AM
Last post by: Web Design Seo
No new Pinned: Joomla Scraper Integration With K2
better integration of Joomla Scraper and K2
8 Web Design Seo 24,414 2nd January 2016 - 09:07 AM
Last post by: b_goranov


 



RSS Lo-Fi Version Time is now: 17th August 2019 - 11:32 AM
Clicky Web Analytics