Jump to content

user agent permissions


IPS_Fan

Recommended Posts

Posted

No one knows where the setting is to force search engine bots to use a certain permission set? I know it is in the ACP. I just do not know where, exactly. Please help me sort this.

Posted

No. The setting I am talking about is one where you can set the bots to have the same access as a given group on your forum. So, they can be guests, or have a higher access, if you so desire. They can also be forced to "view" a certain skin.

I am still unable to find these settings. Do they still exist in v3.0?

Posted

That was perhaps a setting in either very old versions of IPB, where the bots could be served the lo-fi skin. Or more recently it was a setting for CommunitySEO. Did you use CSEO?

I wouldn't give the bots anymore permissions than guests, nor less. I'd not serve a different skin to bots either.

What are you trying to do, it's possible you could do what you want, in some other way.

Posted

Okay. Thanks, guys.

I just noticed that one of the bots was showing up on a hidden forum. It wasn't a media or an adsense bot. So, I wanted to make sure they could not crawl the hidden forums on my site.

The bot was proximic.

Oh, I have always set bot permissions as the same as guests.

Thanks for your input.

  • 2 years later...
Posted

also I would permise to user agent to index pages... but force login to others visitors (200 visitors(returning 80%), 20 logged medium)

there are skin issue if i override it with a php condition sad.png

update: i am trying, but not know it work unsure.png

if( ! ipsRegistry::member()->is_not_human )
{
 define( 'IPS_ENFORCE_ACCESS', TRUE );
}
Posted

also tried:

$bots = array(
	'Googl(e|ebot)(-Image)?/',
	'Googl(e|ebot)(-Mobile)?/',
	'^ia_archive',
	'Ask[ -]?Jeeves',
	'facebookexternalhit/([0-9.]{1,10})',
	'bingbot[ /]([0-9.]{1,10})',
	'Yahoo(.*?)(Slurp|FeedSeeker)'
);
if( isset($_SERVER['HTTP_USER_AGENT']) &&  ! defined( 'IPS_ENFORCE_ACCESS' ) )
{
	foreach($bots as $bot){
		$regex = str_replace( '#', '#', $bot );
		if( !preg_match('#{$regex}#i', $_SERVER['HTTP_USER_AGENT']) )
		{
			continue;
		}
		else
		{
			define( 'IPS_ENFORCE_ACCESS', TRUE );
			break;
		}
		unset($regex);
	}
}

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...