TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 511
  • Total: 511

[Block] Guest Page View Limit

Started by Thurnok, November 17, 2006, 04:51:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Thurnok

@ianus:
The example you state, going to 3 pages on my site, then having to register is because I have it set to 3 page views as a guest so that existing members can test it without having to view hundreds of pages as a guest before seeing the results.  This was intentional.  In practical use for most sites that number would probably be much higher, though can be whatever the Admin of the site wants it to be.  Again, this is intentional.  As far as my own site, one must register to view my various blocks, and test/use them at my site, and that of course is also intentional.

Your ideas are good, however, there is already a registration reminder mod at SMF, so doing something that is simply a reminder is somewhat a duplication of effort.  This block was produced as a request to prevent someone from viewing the site as a guest more than x number of times.  What you are looking for changes the entire basis for this block.  The basis for this block is to prevent guests from viewing your site, more than x times, forcing them to register if they wish to continue viewing content on your site.  If you simply want to display a registration reminder, allowing a guest to continue viewing the site, my suggestion would be to get the SMF mod that already performs this function.

Additionally, the "special" IPs and "excluded" IPs enhancement was based on a request to enhance this block, but still keep its basic intent.  In otherwords, still prevent "real user" guests from infinately viewing the site, but allow various bots and spiders (for which there are known staic IPs) to not be blocked after x number of views so that they can infinately scan your site to update search engine pages.

haxen

Yea, this is nice coding.  I implemented it at www.ps3hax.com

Then I linked the code to an article that has a nice message and a href to the registration as well as one to the login for existing users (left & right blocks are removed for article).

Check it out as a guest, it will take you 10 clicks to get to the article to test it.

Thurnok

Yep... I just checked it out Haxen.  Nice implementation.  :)

ianus

Greetings!

Sorry for the delay. Overlook the sent notification.

Thanks for your polite answer which makes things clear, even to me.

I choose your side only as an example, to make my arguments more understandable.
I understand your intention and Iââ,¬â,,¢m sure, you will get me as an member, as soon as I can set up my SMF1.1.x & TP. Your offerings are worth enough to spend the time and register, for sure.

I know the ââ,¬Å¾Reminder ââ,¬â€œ mod ââ,¬Å" and also, I see the duplication of effort. Personally, I would name it increase in capacity. Nevertheless, your position is clear and this mod is a great feature with or without this snippet.

So there arenÃ,´t ââ,¬Å"more special guestââ,¬Â, mmh.
Antecedes and face your destiny ââ,¬â€œ your will see, we are all the same ââ,¬â€œ but google is different.
Why? Because, If Mr. (or Mrs.) Death have the suspicion to leave out a soul, he (she) perform a quick search.  >:D

I bow my head.
Have a lot of fun and success with everything you do.

haxen

#45
Thurnok, I have found that Google spiders could  possibly range their IPs from 66.249.64.0 - 66.249.95.255

How would we describe this entire range as being exempt from the Guest Page View Limit, this would surely give access to Googlebot no matter what IP they come from.  I am sure others will benefit from your solution.

thanks,   :up:

Thurnok

@haxen
Yes, I can see that might be a problem.  Alot of other spiders only have 1 or 2 IPs, but since Google is so large these days... Hrm... I will add an IP mask to the "excluded" and "special" IP arrays for the next update.  I'll probably keep it relatively simple, and not support all the possible ways for displaying an IP mask (in other words, I'll probably use 4 dot notation masks, but not CIDR notation).  Also, I probably will not include IPv6.

So probably something like array('113.27.61.*', '66.249.64.0-66.249.95.255');

@ianus
Ah.. does the Regbar warning mod have the features you need?  I haven't used it myself, only saw it in the list of mods and its purpose.  I think there was one other mod that mentions something about registration notifications as well.  If not, you can probably get something similar to the way haxen has implemented this block on your site with some similar features.  Take a look at haxen's site mentioned in his post above and see if that is more of what you are looking to do.



rebelrose

I have this block on my site and have not seen a slow down in spiders at all. Very nice little feature Thurnok  :up:

haxen

Thurok, can I simply replace your existing code with the
array('113.27.61.*', '66.249.64.0-66.249.95.255'); (for example) or do you need to provide code more to understand the * and the range above?

thanks.

ianus

Greetings!

ââ,¬Å¾Ah.. does the Regbar warning mod have the features you need?ââ,¬Å"
Maybe. I think, I try a ââ,¬Å"show only to Guestââ,¬Â block instead.
I insert some advertising or a picture of my face and the option to remove this ugly box after a registration.

In any case, thanks for your kind support and great care.

This website is proudly hosted on Crocweb Cloud Website Hosting.