Keyword

URL directly accessing component/k2/itemlist/category/

  • Mick
  • Mick's Avatar Topic Author
  • Offline
  • Junior Member
More
3 weeks 1 day ago #171323 by Mick
Mick created the topic: URL directly accessing component/k2/itemlist/category/
Hi, I've been having spammers using a direct link to our website (Joomla 3.9.3, K2 2.9.0, Josetta K2 Categories and Items plugin 2.7.0, JSitemap Pro 4.6) :

https://www.########.###/component/k2/itemlist/category/37-##########.html

How has this link been created and how do I block and prevent it? I have tried server redirect and also Joomla redirect plugin but to no avail.

Thanks

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
3 weeks 3 hours ago #171331 by Fotis
Fotis replied the topic: URL directly accessing component/k2/itemlist/category/
Why do you care really? Spammers could just as easily link directly to your homepage. Would you take your site down because of that?

The URL you mentioned is just a non-menu-linked URL for a category in K2. You can get similar URLs from any other Joomla component. The URL may be valid if it does not belong to a K2 category that is linked to a menu item. If you redirect it, you may be redirecting valid content.

If you're being sent traffic from specific sites, the sensible thing would be to simply block these sites as referrers. In other words, any link on these sites that points back to you can be redirected to somewhere else.

But again, is it worth it? I would say "don't bother".


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Mick
  • Mick's Avatar Topic Author
  • Offline
  • Junior Member
More
2 weeks 2 days ago - 2 weeks 2 days ago #171389 by Mick
Mick replied the topic: URL directly accessing component/k2/itemlist/category/
I care because I haven't set up a menu to the category deliberately and don't want anyone being able to generate the url outside my control and accessing a page that I haven't configured or managed in terms of current content.

The home page is managed so I don't mind anyone visiting it directly.

There is no referrer site to block, these are direct.
Last Edit: 2 weeks 2 days ago by Mick.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #171394 by Fotis
Fotis replied the topic: URL directly accessing component/k2/itemlist/category/
I just noticed you use JSitemap. If it crawls K2 entirely then maps content to XML sitemap files, that could be the culprit if you don't link to these categories you mentioned anywhere else in your content.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Mick
  • Mick's Avatar Topic Author
  • Offline
  • Junior Member
More
2 weeks 2 days ago #171398 by Mick
Mick replied the topic: URL directly accessing component/k2/itemlist/category/
Thanks. I did wonder if JSitemap was the culprit but hadn't found any evidence when I posted this topic. I'll dig deeper and see if I can find anything.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 1 day ago #171399 by Fotis
Fotis replied the topic: URL directly accessing component/k2/itemlist/category/
It's simple really. Download all XML files that JSitemap generates and search for the string "component/k2/itemlist/category". If you find such URLs that point to content you don't want referenced in these XML files, look for any options in JSitemap to limit its crawler on K2 content.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Mick
  • Mick's Avatar Topic Author
  • Offline
  • Junior Member
More
2 weeks 1 day ago #171400 by Mick
Mick replied the topic: URL directly accessing component/k2/itemlist/category/
No options in JSitemap to limit K2 content crawlers found yet. But I have found a work around in the K2 Category settings.

Thanks for you input.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 1 day ago #171401 by Fotis
Fotis replied the topic: URL directly accessing component/k2/itemlist/category/
What's the workaround? (may help others in case they ever face the same issue as you)


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Mick
  • Mick's Avatar Topic Author
  • Offline
  • Junior Member
More
2 weeks 1 day ago #171402 by Mick
Mick replied the topic: URL directly accessing component/k2/itemlist/category/
In K2 Category> Display Settings > Item view options in category listings : Set all options to Hide, then only the folder icon is displayed if the URL is used.

Obviously I would have to change the settings if I ever use a Menu item linked to the K2 Category.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 1 day ago #171403 by Fotis
Fotis replied the topic: URL directly accessing component/k2/itemlist/category/
Thank you.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

Moderators: william white