SOLVED - How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

General questions relating to Joomla! 3.x. Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Post Reply
vijay2014
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Jun 02, 2018 8:34 pm

SOLVED - How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by vijay2014 » Mon Jun 04, 2018 5:11 am

Please help to enlighten this part. I'm not getting it.
You do not have the required permissions to view the files attached to this post.
Last edited by imanickam on Wed Jun 13, 2018 3:02 am, edited 2 times in total.
Reason: Marked as Solved. Changed the title to 'How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website'

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 19087
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: can anyone help me to optimize the site I made

Post by leolam » Tue Jun 05, 2018 5:40 am

This is another issue and you should open a new thread for each new issue.

Where you get this error? Change RSS-feed to RSS 2.0 (https://docs.joomla.org/Help38:Extensio ... tion_Feeds)

Leo 8)
Joomla's #1 Professional Support Provider:
-> Joomla Professional Support: https://gws-desk.com -
-> Joomla Specialized Hosting Solutions: https://gws-host.com -
Member Joomla Bug Squad & Joomla CMS Release Team

vijay2014
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Jun 02, 2018 8:34 pm

How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by vijay2014 » Tue Jun 05, 2018 8:50 am

The issue here is with this website:- http://www.nksquare.co.in/DEV/cihner/

In the above website when the following link (http://www.nksquare.co.in/DEV/cihner/in ... d&type=rss) is passed on the the browser, featured article is displayed. .
The featured article is also displayed on the following link:- http://www.nksquare.co.in/DEV/cihner/in ... &type=atom (see the screenshot).
Our client have send this website for security audit. Please see the security audit report (attached), I'm not able to understand what it (audit report) is saying. What is the action needed on our part (recommending by security audit report)?
One important thing is that, we have not implemented RSS feature on this website, so we don't need RSS feed.
I think, when the user visits the following links:-http://www.nksquare.co.in/DEV/cihner/in ... d&type=rss , http://www.nksquare.co.in/DEV/cihner/in ... &type=atom can we direct them to 404 error page or to custom page?
Thank you.
You do not have the required permissions to view the files attached to this post.

User avatar
mandville
Joomla! Master
Joomla! Master
Posts: 14694
Joined: Mon Mar 20, 2006 1:56 am
Location: The Girly Side of Joomla in Sussex

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by mandville » Tue Jun 05, 2018 11:17 am

Who audited your site?
Can't you just disable feed for articles,
https://www.google.co.uk/search?q=jooml ... isable+rss
Did you not notice that your site fails on basic security ?
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be reported, added to the foe list and possibly just deleted
{VEL Team Leader}{TM Auditor }{ Showcase & Security forums Moderator}

vijay2014
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Jun 02, 2018 8:34 pm

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by vijay2014 » Tue Jun 05, 2018 11:44 am

mandville wrote:Who audited your site?
Can't you just disable feed for articles,
https://www.google.co.uk/search?q=jooml ... isable+rss
Did you not notice that your site fails on basic security ?
Even after disabling "Show Feed link" the featured article is shown when accessing this above two links. Can I not show 404 error message when the user access this link (https://www.google.co.uk/search?q=jooml ... isable+rss)?

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 19087
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by leolam » Tue Jun 05, 2018 4:51 pm

@Mandville: Cross Posting issue already posted here viewtopic.php?f=706&t=962580&p=3527320#p3527320

Leo 8)
Joomla's #1 Professional Support Provider:
-> Joomla Professional Support: https://gws-desk.com -
-> Joomla Specialized Hosting Solutions: https://gws-host.com -
Member Joomla Bug Squad & Joomla CMS Release Team

vijay2014
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Jun 02, 2018 8:34 pm

Re: can anyone help me to optimize the site I made

Post by vijay2014 » Tue Jun 05, 2018 5:06 pm

leolam wrote:This is another issue and you should open a new thread for each new issue.

Where you get this error? Change RSS-feed to RSS 2.0 (https://docs.joomla.org/Help38:Extensio ... tion_Feeds)

Leo 8)
Mr. leolam, when the user enters http://www.nksquare.co.in/DEV/cihner/in ... d&type=rss OR this link http://www.nksquare.co.in/DEV/cihner/in ... &type=atom, I want it to be displayed a "404 error " message. There is no need for RSS feed in this website. I have followed you link but it does not help. Please help me to solve this problem.

mbabker
Joomla! Hero
Joomla! Hero
Posts: 2176
Joined: Sun Feb 28, 2010 8:26 pm

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by mbabker » Tue Jun 05, 2018 10:28 pm

There might be a plugin out there that can pull this off, but no, there is no configuration option to disable core views.
So long and thanks for all the fish.

Manually updating Joomla? See https://gist.github.com/mbabker/d7bfb4e ... 3607f89281

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5616
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by sozzled » Tue Jun 05, 2018 11:05 pm

I think @mbabker is right. I don't know how the Joomla CMS can prevent attempted usage of these URLs to fail (or generate a 404) unless you deliberately instruct J! to redirect those attempts to a 404 page. In other words, I don't know how to disable these things, either.

One way to do this would be to use the Redirects component. Another way would be to add a couple of lines to the .htaccess file. There might be other ways as well, but those are the first two methods that come to mind and, in my own case, when I want to prevent people using these URLS—however people may discover or try to use them—I redirect those URLs elsewhere (wherever you choose to send them).
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

vijay2014
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Jun 02, 2018 8:34 pm

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by vijay2014 » Thu Jun 07, 2018 6:53 pm

sozzled wrote:I think @mbabker is right. I don't know how the Joomla CMS can prevent attempted usage of these URLs to fail (or generate a 404) unless you deliberately instruct J! to redirect those attempts to a 404 page. In other words, I don't know how to disable these things, either.

One way to do this would be to use the Redirects component. Another way would be to add a couple of lines to the .htaccess file. There might be other ways as well, but those are the first two methods that come to mind and, in my own case, when I want to prevent people using these URLS—however people may discover or try to use them—I redirect those URLs elsewhere (wherever you choose to send them).

Mr. sozzled, I want to redirect all the below links to the home page and I want to do that from .htaccess. Can you please show me how to do that?

1. http://localhost/cihner/index.php?format=feed&type=rss
2. http://localhost/cihner/index.php?format=feed&type=atom
3. http://localhost/cihner/index.php?format=feed&type=1
4. http://localhost/cihner/index.php?forma ... type[]=rss

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5616
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by sozzled » Thu Jun 07, 2018 8:57 pm

vijay2014 wrote:I want to redirect all the below links to the home page and I want to do that from .htaccess. Can you please show me how to do that?

1. http://localhost/cihner/index.php?format=feed&type=rss
2. http://localhost/cihner/index.php?format=feed&type=atom
3. http://localhost/cihner/index.php?format=feed&type=1
4. http://localhost/cihner/index.php?forma ... type[]=rss
Assuming "http://localhost/cinher" is the home page, I would do it something like this:

Code: Select all

RewriteEngine On
RewriteCond %{QUERY_STRING} format=feed
RewriteRule .* http://localhost/cihner/
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

vijay2014
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Jun 02, 2018 8:34 pm

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by vijay2014 » Fri Jun 08, 2018 7:14 am

sozzled wrote:
vijay2014 wrote:I want to redirect all the below links to the home page and I want to do that from .htaccess. Can you please show me how to do that?

1. http://localhost/cihner/index.php?format=feed&type=rss
2. http://localhost/cihner/index.php?format=feed&type=atom
3. http://localhost/cihner/index.php?format=feed&type=1
4. http://localhost/cihner/index.php?forma ... type[]=rss
Assuming "http://localhost/cinher" is the home page, I would do it something like this:

Code: Select all

RewriteEngine On
RewriteCond %{QUERY_STRING} format=feed
RewriteRule .* http://localhost/cihner/
I have added those lines but it's of no effect. What could be the issue?

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5616
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by sozzled » Fri Jun 08, 2018 7:37 am

There's no effect because ...

a) there's no real website called http://localhost/cihner/ (perhaps)?

or

b) you added these lines to the ".htaccess" file that's not associated with your website (perhaps)?

or

c) you didn't really add these lines to a file called .htaccess (perhaps)?

or

d) you just made this up to get me to guess ...

You're the expert here, not me. Sorry, but I can't guess any better. I tried my hardest to guess the right answer.

Please stop quoting everything I wrote. I know what I've written: there's no reason to quote every word I've written when you reply. Thanks. :eek:
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

vijay2014
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Jun 02, 2018 8:34 pm

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by vijay2014 » Tue Jun 12, 2018 7:40 pm

sozzled wrote:There's no effect because ...

a) there's no real website called http://localhost/cihner/ (perhaps)?

or

b) you added these lines to the ".htaccess" file that's not associated with your website (perhaps)?

or

c) you didn't really add these lines to a file called .htaccess (perhaps)?

or

d) you just made this up to get me to guess ...

You're the expert here, not me. Sorry, but I can't guess any better. I tried my hardest to guess the right answer.

Please stop quoting everything I wrote. I know what I've written: there's no reason to quote every word I've written when you reply. Thanks. :eek:
btw:- this is how I was able to direct to the home page

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} format=feed
RewriteRule (.*) /cihner/? [R=302,L]
</IfModule>

Thank you

vijay2014
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Jun 02, 2018 8:34 pm

Re: How can i disable "index.php?format=feed&type=rss" and "index.php?format=feed&type=atom" from my joomla website

Post by vijay2014 » Wed Jun 13, 2018 1:52 pm

mandville wrote:Who audited your site?
Can't you just disable feed for articles,
https://www.google.co.uk/search?q=jooml ... isable+rss
Did you not notice that your site fails on basic security ?
Can you now please check this site(https://www.nksquare.co.in/DEV/cihner/) whether it fails on basic security?


Post Reply

Return to “General Questions/New to Joomla! 3.x”