Support

Admin Tools

#29046 Block specific url

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by brunocotta on Wednesday, 31 January 2018 06:28 CST

brunocotta
Can I block a specific link within my site?
That is, I do not want anyone to access a certain URL from within my site.

tampe125
Akeeba Staff
Hello,

yes, you can easily do that creating a rule inside your .htaccess. Please take a look at this answer inside Stack Overflow.
If you're using Admin Tools Htaccess Maker, you can put those extra rules inside the field Custom .htaccess rules at the top of the file and regenerate the .htaccess file.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

brunocotta
Hello my friend!
Can you help me?

I did not quite understand.

How exactly would be the rule for me to redirect the url for example:
htttp: //www.examplesite.com.br/componente/user/itemid300
to htttp: //www.examplesite.com.br/

I do not quite understand .htacess

And in case it would be necessary to change in the default htacess and htacess of admin tools?

Greetings.

tampe125
Akeeba Staff
Do you want to block that URL or redirect it to another page?
If you want to block it, follow the instructions on the link I previously gave you.

RewriteRule ^URL-WITHOUT-THE-DOMAIN-THAT-YOU-WANT-TO-BLOCK$ - [F]

You can add this rules manually inside Joomla default .htaccess or, if you are using the Htaccess Maker, you have to add that rule inside the field Custom .htaccess rules at the top of the file and then save it.

If you want to redirect a specific URL you have to use the following rule:

Redirect /componente/user/itemid300 /
Again, you have to manually add it to the default .htaccess file or use the Htaccess Maker to update the file.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

brunocotta
OK thank you!
It worked right here!

God bless you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!